diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2011-03-13 00:29:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 11:57:38 -0700 |
commit | 4d527a7adbc47bdc357ddab513861e6a7636755e (patch) | |
tree | 0d87536398e7cf4ee9112cd0886c2b4c55e30bb8 /drivers/power/wm97xx_battery.c | |
parent | 1d5c536efeb9c109e330209867ae1242d42cdb7b (diff) | |
download | op-kernel-dev-4d527a7adbc47bdc357ddab513861e6a7636755e.zip op-kernel-dev-4d527a7adbc47bdc357ddab513861e6a7636755e.tar.gz |
staging: winbond: 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/power/wm97xx_battery.c')
0 files changed, 0 insertions, 0 deletions