Commit efdf0e39 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo
Browse files

mwifiex: fix a reversed condition



The NULL test here is reversed.

Fixes: 7d7f07d8 ('mwifiex: add wowlan net-detect support')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 44ca509c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;