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

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
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -601,10 +601,8 @@ void pohmelfs_config_exit(void)

		list_del(&g->group_entry);

		if (g->hash_string)
		kfree(g->hash_string);

		if (g->cipher_string)
		kfree(g->cipher_string);

		kfree(g);