Commit 3a6763f0 authored by Thomas Andersen's avatar Thomas Andersen Committed by Eduardo Lima Mitev

freedreno: remove null check before free

Reviewed-by: Eduardo Lima Mitev's avatarEduardo Lima Mitev <elima@igalia.com>
parent 86981943
......@@ -262,8 +262,7 @@ fd_resource_transfer_unmap(struct pipe_context *pctx,
pipe_resource_reference(&ptrans->resource, NULL);
util_slab_free(&ctx->transfer_pool, ptrans);
if (trans->staging)
free(trans->staging);
free(trans->staging);
}
static void *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment