forked from Minki/linux
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:
parent
43c04d42c3
commit
14910178fc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user