Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath6kl: fix return value in ath6kl_wmi_set_pvb_cmd

When building with W=1, we got one warning as belows:
drivers/net/wireless/ath/ath6kl/wmi.c:3509:6: warning: variable ‘ret’
set but not used [-Wunused-but-set-variable]

At the end of ath6kl_wmi_set_pvb_cmd, it is returned by 0 regardless of
return value of ath6kl_wmi_cmd_send.
This patch fixes return value from 0 to ret that has result of
ath6kl_wmi_cmd_send execution.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

authored by

Chaehyun Lim and committed by
Kalle Valo
b9301505 739ccd76

+1 -1
+1 -1
drivers/net/wireless/ath/ath6kl/wmi.c
··· 3520 3520 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_AP_SET_PVB_CMDID, 3521 3521 NO_SYNC_WMIFLAG); 3522 3522 3523 - return 0; 3523 + return ret; 3524 3524 } 3525 3525 3526 3526 int ath6kl_wmi_set_rx_frame_format_cmd(struct wmi *wmi, u8 if_idx,