staging: vt6655: 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>
This commit is contained in:
Ilia Mirkin 2011-03-13 00:29:14 -05:00 committed by Greg Kroah-Hartman
parent 794a8946ba
commit 6403bb7dc1
3 changed files with 3 additions and 6 deletions

View File

@ -3064,7 +3064,6 @@ else {
} }
error1: error1:
if(buffer)
kfree(buffer); kfree(buffer);
if(filp_close(filp,NULL)) if(filp_close(filp,NULL))

View File

@ -860,7 +860,6 @@ int vt6655_hostap_ioctl(PSDevice pDevice, struct iw_point *p)
} }
out: out:
if (param != NULL)
kfree(param); kfree(param);
return ret; return ret;

View File

@ -987,7 +987,6 @@ int wpa_ioctl(PSDevice pDevice, struct iw_point *p)
} }
out: out:
if (param != NULL)
kfree(param); kfree(param);
return ret; return ret;