]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: remove extraneous 'const' qualifier
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 21:29:54 +0000 (22:29 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 11:37:06 +0000 (13:37 +0200)
commit3ba52e31e796c905fa3b946f48c74953c527f288
treed10f641b361b5be788d332ac2a0c075a65ad2c0d
parentf611e17b7dc0b9057bbb0812dacde35f9786c2f5
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: c47900ed6c40 ("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
drivers/net/wireless/realtek/rtw88/rtw8822b.c