mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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
1 changed files with 2 additions and 4 deletions
|
|
@ -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 a new issue