staging: ath6kl: Remove NULL check before kfree
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 13 Mar 2011 05:28:54 +0000 (00:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:57:30 +0000 (11:57 -0700)
commit4dd53810912089380223c8fbddd83dcb642b6166
treef363735e0a59de482bcdcb160fc4401ab6ae04c3
parent459d2ea0b5547e55e22c5edff6760ab07c2b3fd1
staging: ath6kl: 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>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
drivers/staging/ath6kl/os/linux/ar6000_android.c
drivers/staging/ath6kl/os/linux/ar6k_pal.c
drivers/staging/ath6kl/os/linux/hci_bridge.c