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>
This commit is contained in:
Ilia Mirkin 2011-03-13 00:29:03 -05:00 committed by Greg Kroah-Hartman
parent 43c04d42c3
commit 14910178fc

View File

@ -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);
}