mwifiex: pcie: remove useless pdev check
authorBrian Norris <briannorris@chromium.org>
Fri, 12 May 2017 16:42:07 +0000 (09:42 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 19 May 2017 06:01:58 +0000 (09:01 +0300)
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c

index 8729809aa248d075a25afaa5e30e6d253bb54070..be5050a536e18685b359dda857187f48c6fac2f7 100644 (file)
@@ -2380,11 +2380,6 @@ static irqreturn_t mwifiex_pcie_interrupt(int irq, void *context)
        struct pcie_service_card *card;
        struct mwifiex_adapter *adapter;
 
-       if (!pdev) {
-               pr_err("info: %s: pdev is NULL\n", __func__);
-               goto exit;
-       }
-
        card = pci_get_drvdata(pdev);
 
        if (!card->adapter) {