Browse Source

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>
Dan Carpenter 9 years ago
parent
commit
efdf0e393e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/marvell/mwifiex/scan.c

+ 1 - 1
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;