diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2011-03-13 00:29:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 11:57:35 -0700 |
commit | b7977fa250c1732d1fc1b5832f257655fd7471a4 (patch) | |
tree | 1b20ab3fc4d50bfffa1a56ae7d172b5b2fbfcf45 /drivers/staging/rtl8712 | |
parent | e72714fb20b2bac88e6bc06401a124243791ca08 (diff) | |
download | blackbird-obmc-linux-b7977fa250c1732d1fc1b5832f257655fd7471a4.tar.gz blackbird-obmc-linux-b7977fa250c1732d1fc1b5832f257655fd7471a4.zip |
staging: rtl8712: Remove NULL check before kfree
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>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index 8ebfdd620ba4..bd315c77610a 100644 --- 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; } |