[PATCH 00/24] Remove NULL check before kfree

From: Ilia Mirkin
Date: Sun Mar 13 2011 - 00:29:46 EST


These patches were 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>

with some minor edits against the staging-next branch,
commit 0789b0033112e301f086f99bd15c7d67c051a51e.

Ilia Mirkin (24):
staging: ath6kl: Remove NULL check before kfree
staging: bcm: Remove NULL check before kfree
staging: brcm80211: Remove NULL check before kfree
staging: comedi: Remove NULL check before kfree
staging: cx25821: Remove NULL check before kfree
staging: go7007: Remove NULL check before kfree
staging: hv: Remove NULL check before kfree
staging: keucr: Remove NULL check before kfree
staging: line6: Remove NULL check before kfree
staging: pohmelfs: Remove NULL check before kfree
staging: rt2860: Remove NULL check before kfree
staging: rtl8187se: Remove NULL check before kfree
staging: rtl8192e: Remove NULL check before kfree
staging: rtl8192u: Remove NULL check before kfree
staging: rtl8712: Remove NULL check before kfree
staging: serqt_usb2: Remove NULL check before kfree
staging: speakup: Remove NULL check before kfree
staging: tidspbridge: Remove NULL check before kfree
staging: usbip: Remove NULL check before kfree
staging: vme: Remove NULL check before kfree
staging: vt6655: Remove NULL check before kfree
staging: vt6656: Remove NULL check before kfree
staging: winbond: Remove NULL check before kfree
staging: wlan-ng: Remove NULL check before kfree

.../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 4 +--
drivers/staging/ath6kl/os/linux/ar6000_android.c | 4 +--
drivers/staging/ath6kl/os/linux/ar6k_pal.c | 6 +--
drivers/staging/ath6kl/os/linux/hci_bridge.c | 6 +--
drivers/staging/bcm/CmHost.c | 11 +-----
drivers/staging/brcm80211/brcmfmac/dhd_cdc.c | 3 +-
drivers/staging/brcm80211/brcmfmac/dhd_common.c | 9 ++---
drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 3 +-
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 24 ++++--------
.../staging/brcm80211/brcmsmac/phy/wlc_phy_cmn.c | 3 +-
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_n.c | 6 +--
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c | 9 ++---
drivers/staging/brcm80211/brcmsmac/wlc_main.c | 6 +--
drivers/staging/brcm80211/util/bcmotp.c | 3 +-
drivers/staging/brcm80211/util/bcmsrom.c | 3 +-
drivers/staging/brcm80211/util/hnddma.c | 14 +++-----
drivers/staging/comedi/drivers/8255.c | 9 +----
drivers/staging/comedi/drivers/das16.c | 6 +--
drivers/staging/comedi/drivers/ni_at_a2150.c | 3 +-
drivers/staging/comedi/drivers/ni_labpc.c | 3 +-
drivers/staging/comedi/drivers/serial2002.c | 8 +---
drivers/staging/comedi/drivers/usbdux.c | 8 +---
drivers/staging/cx25821/cx25821-audio-upstream.c | 9 ++---
.../staging/cx25821/cx25821-video-upstream-ch2.c | 9 ++---
drivers/staging/cx25821/cx25821-video-upstream.c | 9 ++---
drivers/staging/go7007/go7007-usb.c | 6 +--
drivers/staging/hv/channel_mgmt.c | 3 +-
drivers/staging/hv/connection.c | 4 +--
drivers/staging/hv/hv_mouse.c | 12 ++----
drivers/staging/keucr/ms.c | 22 ++++-------
drivers/staging/line6/pcm.c | 3 +-
drivers/staging/pohmelfs/config.c | 6 +--
drivers/staging/rt2860/common/spectrum.c | 6 +--
drivers/staging/rt2860/rt_linux.c | 6 +--
.../rtl8187se/ieee80211/ieee80211_softmac.c | 3 +-
drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c | 1 -
.../staging/rtl8192e/ieee80211/ieee80211_module.c | 7 +---
drivers/staging/rtl8192e/ieee80211/ieee80211_rx.c | 7 +---
.../staging/rtl8192e/ieee80211/ieee80211_softmac.c | 7 +---
drivers/staging/rtl8192e/ieee80211/ieee80211_wx.c | 1 -
drivers/staging/rtl8192u/ieee80211/cipher.c | 3 +-
.../staging/rtl8192u/ieee80211/ieee80211_module.c | 7 +---
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 7 +---
.../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 7 +---
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 1 -
drivers/staging/rtl8192u/r8192U_core.c | 39 ++++++--------------
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 +-
drivers/staging/serqt_usb2/serqt_usb2.c | 3 +-
drivers/staging/speakup/main.c | 6 +--
drivers/staging/tidspbridge/core/chnl_sm.c | 3 +-
drivers/staging/tidspbridge/pmgr/dbll.c | 3 +-
drivers/staging/usbip/stub_main.c | 6 +--
drivers/staging/vme/bridges/vme_ca91cx42.c | 3 +-
drivers/staging/vme/bridges/vme_tsi148.c | 3 +-
drivers/staging/vt6655/device_main.c | 3 +-
drivers/staging/vt6655/hostap.c | 3 +-
drivers/staging/vt6655/wpactl.c | 3 +-
drivers/staging/vt6656/firmware.c | 3 +-
drivers/staging/vt6656/hostap.c | 3 +-
drivers/staging/vt6656/main_usb.c | 12 ++----
drivers/staging/vt6656/wpactl.c | 3 +-
drivers/staging/winbond/wb35reg.c | 3 +-
drivers/staging/wlan-ng/hfa384x_usb.c | 6 +--
drivers/staging/wlan-ng/prism2fw.c | 3 +-
64 files changed, 127 insertions(+), 281 deletions(-)

--
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/