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 --- xkb/xkbLEDs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xkb/xkbLEDs.c') diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c index d75f92093..ae3666f3f 100644 --- a/xkb/xkbLEDs.c +++ b/xkb/xkbLEDs.c @@ -605,8 +605,8 @@ void XkbFreeSrvLedInfo(XkbSrvLedInfoPtr sli) { if ((sli->flags&XkbSLI_IsDefault)==0) { - if (sli->maps) free(sli->maps); - if (sli->names) free(sli->names); + free(sli->maps); + free(sli->names); } sli->maps= NULL; sli->names= NULL; -- cgit v1.2.3