diff options
author | 2016-02-12 20:07:54 +0530 | |
---|---|---|
committer | 2016-02-14 16:21:15 -0800 | |
commit | da58688fb02100c1275d15213d01c06565933e14 (patch) | |
tree | 1690157af0e89e6a84c03e8a4368d620d241bbca /drivers/staging/fbtft/fb_ili9320.c | |
parent | staging: lustre: obdclass: Use IS_ERR_OR_NULL (diff) | |
download | linux-dev-da58688fb02100c1275d15213d01c06565933e14.tar.xz linux-dev-da58688fb02100c1275d15213d01c06565933e14.zip |
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>
Diffstat (limited to 'drivers/staging/fbtft/fb_ili9320.c')
0 files changed, 0 insertions, 0 deletions