summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/cfg80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/cfg80211.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/cfg80211.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 9e6dc289ec3e..4d9ac4ae29b1 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -2674,11 +2674,8 @@ mwifiex_cfg80211_sched_scan_start(struct wiphy *wiphy,
struct mwifiex_bg_scan_cfg *bgscan_cfg;
struct ieee_types_header *ie;
- if (!request || (!request->n_ssids && !request->n_match_sets)) {
- wiphy_err(wiphy, "%s : Invalid Sched_scan parameters",
- __func__);
+ if (!request || (!request->n_ssids && !request->n_match_sets))
return -EINVAL;
- }
wiphy_info(wiphy, "sched_scan start : n_ssids=%d n_match_sets=%d ",
request->n_ssids, request->n_match_sets);