mwifiex: fix a reversed condition

The NULL test here is reversed.

Fixes: 7d7f07d8c5 ('mwifiex: add wowlan net-detect support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Dan Carpenter 2016-02-02 13:00:05 +03:00 committed by Kalle Valo
parent 44ca509cb9
commit efdf0e393e
1 changed files with 1 additions and 1 deletions

View File

@ -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;