summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/scan.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-02-02 13:00:05 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-02-06 15:01:04 +0300
commitefdf0e393e76aa18e9c2ec0ca9b3a71ad410994b (patch)
tree1558cdb7be5768551d257dd7b70a419045d95266 /drivers/net/wireless/marvell/mwifiex/scan.c
parent44ca509cb9769f27ad8f7d662910e31329eed46f (diff)
downloadlinux-efdf0e393e76aa18e9c2ec0ca9b3a71ad410994b.tar.xz
mwifiex: fix a reversed condition
The NULL test here is reversed. Fixes: 7d7f07d8c5d3 ('mwifiex: add wowlan net-detect support') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c
index fc8d8ca67453..489f7a911a83 100644
--- a/drivers/net/wireless/marvell/mwifiex/scan.c
+++ b/drivers/net/wireless/marvell/mwifiex/scan.c
@@ -2196,7 +2196,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
pmatch = adapter->nd_info->matches[idx];
- if (!pmatch) {
+ if (pmatch) {
memset(pmatch, 0, sizeof(*pmatch));
if (chan_band_tlv) {
pmatch->n_channels = 1;