staging: comedi: Remove NULL check before kfree
commite4e1f289be88a75dc8b63d50ade1f9a2e6168021
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:28:57 +0000 (13 00:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:57:31 +0000 (14 11:57 -0700)
treed028262fea99eefe7f209c7f643942db7b660902
parent46d994b1f5b481c7f0a77edece270cf253db84c9
staging: comedi: 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/comedi/drivers/8255.c
drivers/staging/comedi/drivers/das16.c
drivers/staging/comedi/drivers/ni_at_a2150.c
drivers/staging/comedi/drivers/ni_labpc.c
drivers/staging/comedi/drivers/serial2002.c
drivers/staging/comedi/drivers/usbdux.c