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 --- glx/xfont.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'glx/xfont.c') diff --git a/glx/xfont.c b/glx/xfont.c index f0b5644b9..b4081cfd4 100644 --- a/glx/xfont.c +++ b/glx/xfont.c @@ -97,9 +97,7 @@ static int __glXMakeBitmapFromGlyph(FontPtr font, CharInfoPtr pci) pci->metrics.characterWidth, 0, allocbuf ? allocbuf : buf) ); - if (allocbuf) { - free(allocbuf); - } + free(allocbuf); return Success; #undef __GL_CHAR_BUF_SIZE } -- cgit v1.2.3