]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: lustre: llite: Remove NULL check before kfree
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 12 Feb 2016 14:37:54 +0000 (20:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:21:15 +0000 (16:21 -0800)
commitda58688fb02100c1275d15213d01c06565933e14
tree1690157af0e89e6a84c03e8a4368d620d241bbca
parentacdd1b8e681405beeb1f73333947fd5a42b871e9
Staging: lustre: llite: Remove NULL check before kfree

NULL check before kfree is unnecessary so remove it.
Semantic patch used:
// <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: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/xattr.c