From: Tapasweni Pathak Date: Thu, 30 Oct 2014 15:38:09 +0000 (+0530) Subject: staging: rtl8188eu: core: Remove null check before kfree X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~558 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a055b3cbb72d2487938d3452c79e2a338088fbc1;p=pandora-kernel.git staging: rtl8188eu: core: Remove null check before kfree kfree on NULL pointer is a no-op. This patch uses the following semantic patch to find such an instance where NULL check is present before kfree. // @@ expression E; @@ - if (E != NULL) { kfree(E); } + kfree(E); @@ expression E; @@ - if (E != NULL) { kfree(E); E = NULL; } + kfree(E); + E = NULL; // smpl> Build tested it. Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed