ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 06:43:28 +0000 (00:43 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Jan 2019 13:29:24 +0000 (15:29 +0200)
ath6kl_wmi_cmd_send could fail, so let's return its error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath6kl/wmi.c

index 9d7ac1ab2d02da6d7e4ebc9177fbbd0a77cb94b3..68854c45d0a455b22445a100ac72ee6277284a25 100644 (file)
@@ -776,10 +776,8 @@ int ath6kl_wmi_set_roam_lrssi_cmd(struct wmi *wmi, u8 lrssi)
        cmd->info.params.roam_rssi_floor = DEF_LRSSI_ROAM_FLOOR;
        cmd->roam_ctrl = WMI_SET_LRSSI_SCAN_PARAMS;
 
-       ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
+       return ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID,
                            NO_SYNC_WMIFLAG);
-
-       return 0;
 }
 
 int ath6kl_wmi_force_roam_cmd(struct wmi *wmi, const u8 *bssid)