Return-path: Received: from mms3.broadcom.com ([216.31.210.19]:2013 "EHLO MMS3.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756035Ab1I2Wes (ORCPT ); Thu, 29 Sep 2011 18:34:48 -0400 From: "Franky Lin" To: gregkh@suse.de cc: devel@linuxdriverproject.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 05/25] staging: brcm80211: removed global var from aiutils.c Date: Thu, 29 Sep 2011 15:34:16 -0700 Message-ID: <1317335676-3424-6-git-send-email-frankyl@broadcom.com> (sfid-20110930_003547_991137_97C7C710) In-Reply-To: <1317335676-3424-1-git-send-email-frankyl@broadcom.com> References: <1317145530-18839-1-git-send-email-frankyl@broadcom.com> <1317335676-3424-1-git-send-email-frankyl@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Roland Vossen Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Arend van Spriel Signed-off-by: Franky Lin --- drivers/staging/brcm80211/brcmsmac/aiutils.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/staging/brcm80211/brcmsmac/aiutils.c b/drivers/staging/brcm80211/brcmsmac/aiutils.c index b7b0bdf..d05c4ba 100644 --- a/drivers/staging/brcm80211/brcmsmac/aiutils.c +++ b/drivers/staging/brcm80211/brcmsmac/aiutils.c @@ -477,9 +477,6 @@ struct aidmp { u32 componentid3; /* 0xffc */ }; -/* global kernel resource */ -static struct si_info ksii; - /* EROM parsing */ static u32 @@ -1216,8 +1213,7 @@ void ai_detach(struct si_pub *sih) pcicore_deinit(sii->pch); sii->pch = NULL; - if (sii != &ksii) - kfree(sii); + kfree(sii); } /* register driver interrupt disabling and restoring callback functions */ -- 1.7.1