Commit 6403bb7d authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Greg Kroah-Hartman

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: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 794a8946
......@@ -3064,7 +3064,6 @@ else {
}
error1:
if(buffer)
kfree(buffer);
if(filp_close(filp,NULL))
......
......@@ -860,7 +860,6 @@ int vt6655_hostap_ioctl(PSDevice pDevice, struct iw_point *p)
}
out:
if (param != NULL)
kfree(param);
return ret;
......
......@@ -987,7 +987,6 @@ int wpa_ioctl(PSDevice pDevice, struct iw_point *p)
}
out:
if (param != NULL)
kfree(param);
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment