From 0a4d8cbdcd7b25313fb29ccdb498044af95f7de6 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sun, 6 Jun 2010 15:28:30 +0700 Subject: Remove more superfluous if(p) checks around free(p) This patch has been generated by the following Coccinelle semantic patch: @@ expression E; @@ -if(E) { free(E); } +free(E); Signed-off-by: Mikhail Gusarov Reviewed-by: Julien Cristau Reviewed-by: Fernando Carrijo Reviewed-by: Matt Turner --- exa/exa_mixed.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'exa') diff --git a/exa/exa_mixed.c b/exa/exa_mixed.c index 89cb137e4..7fa771d49 100644 --- a/exa/exa_mixed.c +++ b/exa/exa_mixed.c @@ -257,8 +257,7 @@ exaDestroyPixmap_mixed(PixmapPtr pPixmap) pExaPixmap->driverPriv = NULL; if (pExaPixmap->pDamage) { - if (pExaPixmap->sys_ptr) - free(pExaPixmap->sys_ptr); + free(pExaPixmap->sys_ptr); pExaPixmap->sys_ptr = NULL; pExaPixmap->pDamage = NULL; } -- cgit v1.2.3