diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2011-03-13 05:29:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 18:57:33 (GMT) |
commit | 14910178fcdcca53230afd4155a6c48e230b2919 (patch) | |
tree | 7b791fd20faf298c3fec17b9326a97cd62c28e60 | |
parent | 43c04d42c3c5a23e2aff330d4d361c733118df80 (diff) | |
download | linux-14910178fcdcca53230afd4155a6c48e230b2919.tar.xz |
staging: pohmelfs: Remove NULL check before kfree
This patch was 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: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/pohmelfs/config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/pohmelfs/config.c b/drivers/staging/pohmelfs/config.c index ed91330..a9a3e25 100644 --- a/drivers/staging/pohmelfs/config.c +++ b/drivers/staging/pohmelfs/config.c @@ -601,11 +601,9 @@ void pohmelfs_config_exit(void) list_del(&g->group_entry); - if (g->hash_string) - kfree(g->hash_string); + kfree(g->hash_string); - if (g->cipher_string) - kfree(g->cipher_string); + kfree(g->cipher_string); kfree(g); } |