]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: brcm80211: remove check on interconnect type in ai_setcore
authorArend van Spriel <arend@broadcom.com>
Tue, 3 May 2011 09:35:47 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 19:42:43 +0000 (12:42 -0700)
All functions in aiutils are only used for AI SOC interconnect chipsets
so no software check is needed other then during the ai_scan function.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/aiutils.c

index 549a61278934b71ce79fdcf55cdfb0f49f4e00dd..2ee42368135707e5091c608a7e5dc626c36d472b 100644 (file)
@@ -1068,12 +1068,7 @@ void *ai_setcore(si_t *sih, uint coreid, uint coreunit)
        if (!GOODIDX(idx))
                return NULL;
 
-       if (sih->socitype == SOCI_AI)
-               return ai_setcoreidx(sih, idx);
-       else {
-               ASSERT(0);
-               return NULL;
-       }
+       return ai_setcoreidx(sih, idx);
 }
 
 /* Turn off interrupt as required by ai_setcore, before switch core */