Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131Ab1CMF31 (ORCPT ); Sun, 13 Mar 2011 00:29:27 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:33402 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747Ab1CMF30 (ORCPT ); Sun, 13 Mar 2011 00:29:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=Ykn6nKdYilr3Nr24nqgBKCgisZqL8yCJPogU9Mrl3ybsyGkgFD7uoVaJWNMHitlo/x IjMnVVPNN6m+uYCKiphpA9lq5XCn8TEmiES9WaNJ0KZVT805UlhoQ/QvB1+chmxlcyFr Hk7wABx7jilo87rgZe+ypbrAwVrvepI3VcyYk= From: Ilia Mirkin To: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/24] Remove NULL check before kfree Date: Sun, 13 Mar 2011 00:28:53 -0500 Message-Id: <1299994157-11191-1-git-send-email-imirkin@alum.mit.edu> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <20110222145452.GD1331@suse.de> References: <20110222145452.GD1331@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5953 Lines: 116 These patches were generated by the following semantic patch // @@ expression E; @@ - if (E != NULL) { kfree(E); } + kfree(E); @@ expression E; @@ - if (E != NULL) { kfree(E); E = NULL; } + kfree(E); + E = NULL; // 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/