staging: brcm80211: removed global var from aiutils.c
authorRoland Vossen <rvossen@broadcom.com>
Thu, 29 Sep 2011 22:34:16 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 23:12:29 +0000 (16:12 -0700)
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/aiutils.c

index b7b0bdf19828e5477ef646270a0dac754a1baf3d..d05c4baf7e1bf97289ebee38cdd784434021d966 100644 (file)
@@ -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 */