diff options
author | Avinash Patil <[email protected]> | 2013-01-21 21:04:10 -0800 |
---|---|---|
committer | John W. Linville <[email protected]> | 2013-01-22 14:33:44 -0500 |
commit | 83f0c6d1f502bd75bb4a9e31e8d64e59c6894ad1 (patch) | |
tree | 092e0e486afa10fb966d3bff9baab043af6f8ccb | |
parent | fea92cbf0850d788683827990670d3968f893327 (diff) |
mwifiex: fix typo in PCIe adapter NULL check
Add missing "!" as we are supposed to check "!card->adapter"
in PCIe suspend handler.
Cc: "3.2+" <[email protected]>
Signed-off-by: Avinash Patil <[email protected]>
Signed-off-by: Bing Zhao <[email protected]>
Reviewed-by: Sergey V. <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index 13fbc4eb1595..b879e1338a54 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -161,7 +161,7 @@ static int mwifiex_pcie_suspend(struct pci_dev *pdev, pm_message_t state) if (pdev) { card = (struct pcie_service_card *) pci_get_drvdata(pdev); - if (!card || card->adapter) { + if (!card || !card->adapter) { pr_err("Card or adapter structure is not valid\n"); return 0; } |