forked from Minki/linux
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 <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>
This commit is contained in:
parent
51fd7b754a
commit
97a18a6b7d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user