mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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 <dottedmag@dottedmag.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user