Return-path: Received: from na3sys009aog137.obsmtp.com ([74.125.149.18]:56632 "EHLO na3sys009aog137.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749Ab3AVFES (ORCPT ); Tue, 22 Jan 2013 00:04:18 -0500 From: Bing Zhao To: linux-wireless@vger.kernel.org Cc: "John W. Linville" , Avinash Patil , Amitkumar Karwar , Yogesh Powar , Nishant Sarmukadam , Frank Huang , Bing Zhao Subject: [PATCH 3.8] mwifiex: fix typo in PCIe adapter NULL check Date: Mon, 21 Jan 2013 21:04:10 -0800 Message-Id: <1358831050-3486-1-git-send-email-bzhao@marvell.com> (sfid-20130122_060423_018651_B58F114A) Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Avinash Patil Add missing "!" as we are supposed to check "!card->adapter" in PCIe suspend handler. Cc: "3.2+" Signed-off-by: Avinash Patil Signed-off-by: Bing Zhao --- 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 3da89b4..237949c 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -164,7 +164,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; } -- 1.7.0.2