From: Pavel Machek Date: Wed, 24 Jul 2019 09:50:15 +0000 (+0200) Subject: mwifiex: make error values consistent in mwifiex_update_bss_desc_with_ie() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6334dea8880a4add8e5e0e4d3c311e7886c26f1c;p=openwrt%2Fstaging%2Fblogic.git mwifiex: make error values consistent in mwifiex_update_bss_desc_with_ie() Surrounding code uses -ERRNO as a result, so don't pass plain -1. Signed-off-by: Pavel Machek Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index 0d6d41727037..ddf75a58d314 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -1243,7 +1243,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter, mwifiex_dbg(adapter, ERROR, "err: InterpretIE: in processing\t" "IE, bytes left < IE length\n"); - return -1; + return -EINVAL; } switch (element_id) { case WLAN_EID_SSID: