diff mbox series

[net-next] ath5k: fix 'mode' kernel-doc warning in ath5k_hw_pcu_init()

Message ID 20200909131858.70391-1-wanghai38@huawei.com (mailing list archive)
State Rejected
Delegated to: Kalle Valo
Headers show
Series [net-next] ath5k: fix 'mode' kernel-doc warning in ath5k_hw_pcu_init() | expand

Commit Message

Wang Hai Sept. 9, 2020, 1:18 p.m. UTC
Fixes the following W=1 kernel build warning(s):

drivers/net/wireless/ath/ath5k/pcu.c:955: warning: Excess function parameter 'mode' description in 'ath5k_hw_pcu_init'

This parameter is not in use. Remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
---
 drivers/net/wireless/ath/ath5k/pcu.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo Sept. 10, 2020, 4:28 p.m. UTC | #1
Wang Hai <wanghai38@huawei.com> wrote:

> Fixes the following W=1 kernel build warning(s):
> 
> drivers/net/wireless/ath/ath5k/pcu.c:955: warning: Excess function parameter 'mode' description in 'ath5k_hw_pcu_init'
> 
> This parameter is not in use. Remove it.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wang Hai <wanghai38@huawei.com>

Already fixed in ath.git.

error: patch failed: drivers/net/wireless/ath/ath5k/pcu.c:945
error: drivers/net/wireless/ath/ath5k/pcu.c: patch does not apply
stg import: Diff does not apply cleanly

Patch set to Rejected.
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c
index 05140d8baa36..3df5f27708fc 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -945,7 +945,6 @@  ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype op_mode)
  * ath5k_hw_pcu_init() - Initialize PCU
  * @ah: The &struct ath5k_hw
  * @op_mode: One of enum nl80211_iftype
- * @mode: One of enum ath5k_driver_mode
  *
  * This function is used to initialize PCU by setting current
  * operation mode and various other settings.