staging: tidspbridge: Remove NULL check before kfree
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:29:11 +0000 (00:29 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:57:36 +0000 (11:57 -0700)
commit9f7ff701ad7b7bdcab949aa0527fe7efb3882afa
tree81e1012bc8e90f3ce172fe89ae86ee41d676ae36
parent39dd3e5d7b09b5a5010ed1aef512f2d58b65cb99
staging: tidspbridge: 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/tidspbridge/core/chnl_sm.c
drivers/staging/tidspbridge/pmgr/dbll.c