freedreno: remove null check before free

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2016-05-04 06:15:36 +02:00 committed by Eduardo Lima Mitev
parent 8698194313
commit 3a6763f0a0
1 changed files with 1 additions and 2 deletions

View File

@ -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 *