diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-10-26 22:29:54 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-11-07 12:37:06 +0100 |
commit | 6ac6546973013b4b368cd3d3515f1e853658b6ce (patch) | |
tree | d10f641b361b5be788d332ac2a0c075a65ad2c0d /drivers/net/wireless/realtek/rtw88/rtw8822b.c | |
parent | rtlwifi: fix -Wpointer-sign warning (diff) | |
download | linux-6ac6546973013b4b368cd3d3515f1e853658b6ce.tar.xz linux-6ac6546973013b4b368cd3d3515f1e853658b6ce.zip |
rtw88: remove extraneous 'const' qualifier
clang -Wextra warns about functions returning a 'const' integer:
drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev)
Remove the extra qualifier here.
Fixes: c97ee3e0bea2 ("rtw88: add power tracking support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201026213040.3889546-7-arnd@kernel.org
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index 22d0dd640ac9..b420eb914879 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -87,7 +87,7 @@ static const u32 rtw8822b_txscale_tbl[RTW_TXSCALE_SIZE] = { 0x2d3, 0x2fe, 0x32b, 0x35c, 0x38e, 0x3c4, 0x3fe }; -static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) +static u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) { u8 i = 0; u32 swing, table_value; |