Commit 14910178 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Greg Kroah-Hartman

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: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 43c04d42
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment