summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2013-01-21 21:04:10 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-03 18:27:02 -0600
commitaa755dd2ab5c0bf2a049ed375808befaf9947a3e (patch)
tree36046db831e58fb739ebe28241cf97bfc895fa66 /drivers
parentb51a7f7c8c4ddd89850dcd8b8b7cf9c1d6b376c7 (diff)
downloadlwn-aa755dd2ab5c0bf2a049ed375808befaf9947a3e.tar.gz
lwn-aa755dd2ab5c0bf2a049ed375808befaf9947a3e.zip
mwifiex: fix typo in PCIe adapter NULL check
commit 83f0c6d1f502bd75bb4a9e31e8d64e59c6894ad1 upstream. Add missing "!" as we are supposed to check "!card->adapter" in PCIe suspend handler. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Reviewed-by: Sergey V. <sftp.mtuci@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c2
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;
}