summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2019-07-24 12:50:15 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-08-06 15:28:08 +0300
commit6334dea8880a4add8e5e0e4d3c311e7886c26f1c (patch)
tree2c06b3856478dd548b52d5e48733441824863108 /drivers/net/wireless/marvell/mwifiex
parent9236c1250cb7c6c645a658485efc2f99d57e96c2 (diff)
downloadlinux-6334dea8880a4add8e5e0e4d3c311e7886c26f1c.tar.xz
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 <pavel@denx.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/scan.c2
1 files changed, 1 insertions, 1 deletions
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: