]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix return value in ath6kl_wmi_set_pvb_cmd
authorChaehyun Lim <chaehyun.lim@gmail.com>
Sun, 18 Sep 2016 06:30:24 +0000 (15:30 +0900)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 28 Sep 2016 10:01:17 +0000 (13:01 +0300)
commit152b2b16f67452af17c69dfe3e547c7f6182473a
treedea4d05a7482289303433decbab7dee70f7ff923
parent84b598823b0e9cf8be5ba089319e69c0bbb6f5d9
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>
drivers/net/wireless/ath/ath6kl/wmi.c