From: Arend van Spriel Date: Tue, 3 May 2011 09:35:47 +0000 (+0200) Subject: staging: brcm80211: remove check on interconnect type in ai_setcore X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=97a18a6b7db2843a40a37ab1f6d76c6ea9617ee6;p=mv-sheeva.git staging: brcm80211: remove check on interconnect type in ai_setcore 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 Cc: Henry Ptasinski Cc: Roland Vossen Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/aiutils.c b/drivers/staging/brcm80211/brcmsmac/aiutils.c index 549a6127893..2ee42368135 100644 --- a/drivers/staging/brcm80211/brcmsmac/aiutils.c +++ b/drivers/staging/brcm80211/brcmsmac/aiutils.c @@ -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 */