staging: pohmelfs: Remove NULL check before kfree
commit14910178fcdcca53230afd4155a6c48e230b2919
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:29:03 +0000 (13 00:29 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:57:33 +0000 (14 11:57 -0700)
tree7b791fd20faf298c3fec17b9326a97cd62c28e60
parent43c04d42c3c5a23e2aff330d4d361c733118df80
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>
drivers/staging/pohmelfs/config.c