mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-25 22:29:43 +00:00
ath9k: Remove useless check in MCI reset
If we fail to allocate the sched/gpm buffers when initializing MCI, we bail out properly. Checking them in ar9003_mci_reset() is unnecessary, so remove it. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ae55099f5b
commit
7d1805e194
@ -831,11 +831,6 @@ int ar9003_mci_reset(struct ath_hw *ah, bool en_int, bool is_2g,
|
|||||||
ath_dbg(common, MCI, "MCI Reset (full_sleep = %d, is_2g = %d)\n",
|
ath_dbg(common, MCI, "MCI Reset (full_sleep = %d, is_2g = %d)\n",
|
||||||
is_full_sleep, is_2g);
|
is_full_sleep, is_2g);
|
||||||
|
|
||||||
if (!mci->gpm_addr && !mci->sched_addr) {
|
|
||||||
ath_err(common, "MCI GPM and schedule buffers are not allocated\n");
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (REG_READ(ah, AR_BTCOEX_CTRL) == 0xdeadbeef) {
|
if (REG_READ(ah, AR_BTCOEX_CTRL) == 0xdeadbeef) {
|
||||||
ath_err(common, "BTCOEX control register is dead\n");
|
ath_err(common, "BTCOEX control register is dead\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user