diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index ab92e799cf75..8ba48192cd2f 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -1820,10 +1820,8 @@ mwifiex_cfg80211_scan(struct wiphy *wiphy, | |||
1820 | 1820 | ||
1821 | priv->user_scan_cfg = kzalloc(sizeof(struct mwifiex_user_scan_cfg), | 1821 | priv->user_scan_cfg = kzalloc(sizeof(struct mwifiex_user_scan_cfg), |
1822 | GFP_KERNEL); | 1822 | GFP_KERNEL); |
1823 | if (!priv->user_scan_cfg) { | 1823 | if (!priv->user_scan_cfg) |
1824 | dev_err(priv->adapter->dev, "failed to alloc scan_req\n"); | ||
1825 | return -ENOMEM; | 1824 | return -ENOMEM; |
1826 | } | ||
1827 | 1825 | ||
1828 | priv->scan_request = request; | 1826 | priv->scan_request = request; |
1829 | 1827 | ||