staging: rtl8188eu: os_dep: Remove null check before kfree
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Fri, 24 Oct 2014 16:15:11 +0000 (21:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:06 +0000 (10:33 +0800)
commit157b8e59fae807936cd98884dc43f90dbb0d5e57
tree629b9ccf70c5acdbe9f5a8c6b0edd3d3686a2969
parentf14557f93620f78adcf419f1adaa281947a5101d
staging: rtl8188eu: os_dep: Remove null check before kfree

This patch is 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: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c