From: Tapasweni Pathak Date: Fri, 24 Oct 2014 16:15:26 +0000 (+0530) Subject: staging: rtl8192e: Remove unnecessary code X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~1021 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f14557f93620f78adcf419f1adaa281947a5101d;p=pandora-kernel.git staging: rtl8192e: Remove unnecessary code kfree on NULL pointer is a no-op. This used the following semantic patch to identify such a instance // @@ expression E; @@ - if (E != NULL) { kfree(E); } + kfree(E); @@ expression E; @@ - if (E != NULL) { kfree(E); E = NULL; } + kfree(E); + E = NULL; // As rxb is always null at this point, so the code to kfree it and intializing it to NULL is removed completely. Suggested by: Julia Lawall Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed