]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
mwifiex: make error values consistent in mwifiex_update_bss_desc_with_ie()
authorPavel Machek <pavel@ucw.cz>
Wed, 24 Jul 2019 09:50:15 +0000 (11:50 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Aug 2019 12:28:08 +0000 (15:28 +0300)
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>
drivers/net/wireless/marvell/mwifiex/scan.c

index 0d6d41727037a737ed224ca84b6bd370dc0a5b7b..ddf75a58d314190b61aa47a67f8ada80eb5f9605 100644 (file)
@@ -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: