projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72714f
)
staging: rtl8712: Remove NULL check before kfree
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:29:08 +0000
(
00:29
-0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 14 Mar 2011 18:57:35 +0000
(11:57 -0700)
This patch was generated by the following semantic patch:
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index 8ebfdd620ba4f8b86ada4fe7944589edca30f4d3..bd315c77610adb1fdf4ed3005bd213adf4f76198 100644
(file)
--- a/
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@
-1873,8
+1873,7
@@
static int r871x_mp_ioctl_hdl(struct net_device *dev,
goto _r871x_mp_ioctl_hdl_exit;
}
_r871x_mp_ioctl_hdl_exit:
- if (pparmbuf != NULL)
- kfree(pparmbuf);
+ kfree(pparmbuf);
return ret;
}