projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5c536
)
staging: winbond: Remove NULL check before kfree
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:29:16 +0000
(
00:29
-0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 14 Mar 2011 18:57:38 +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/winbond/wb35reg.c
patch
|
blob
|
history
diff --git
a/drivers/staging/winbond/wb35reg.c
b/drivers/staging/winbond/wb35reg.c
index 42ae61014522d03805d3659e565e4cee1d583316..da595f16f634de7153f5e3b98c292c18487d382c 100644
(file)
--- a/
drivers/staging/winbond/wb35reg.c
+++ b/
drivers/staging/winbond/wb35reg.c
@@
-66,8
+66,7
@@
unsigned char Wb35Reg_BurstWrite(struct hw_data *pHwData, u16 RegisterNo, u32 *p
} else {
if (urb)
usb_free_urb(urb);
- if (reg_queue)
- kfree(reg_queue);
+ kfree(reg_queue);
return false;
}
return false;