freedreno: remove null check before free
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
parent
8698194313
commit
3a6763f0a0
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue