From: Thomas Hindoe Paaboel Andersen Date: Wed, 4 May 2016 04:15:36 +0000 (+0200) Subject: freedreno: remove null check before free X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a6763f0a078b2abc9a2b0dd43efc6efe73eee30;p=mesa.git freedreno: remove null check before free Reviewed-by: Eduardo Lima Mitev --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 99affc492d1..44558185a6b 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -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 *