ath9k: Remove useless check in MCI reset
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 16 Feb 2015 05:19:54 +0000 (10:49 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 12:55:16 +0000 (14:55 +0200)
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>
drivers/net/wireless/ath/ath9k/ar9003_mci.c

index 7b94a6c7db3d50dd4feb53dd74e1973bd68f2e6d..4aed985a7c61bcb2877464e7c14c9ea6c9a1641b 100644 (file)
@@ -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",
                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) {
                ath_err(common, "BTCOEX control register is dead\n");
                return -EINVAL;