Skip to content

Commit

Permalink
mwifiex: make error values consistent in mwifiex_update_bss_desc_with…
Browse files Browse the repository at this point in the history
…_ie()

Surrounding code uses -ERRNO as a result, so don't pass plain -1.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
pavelmachek authored and Kalle Valo committed Aug 6, 2019
1 parent 9236c12 commit 6334dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/marvell/mwifiex/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6334dea

Please sign in to comment.