]> git.baikalelectronics.ru Git - kernel.git/commit
net: hostap: fix function cast warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 21:29:49 +0000 (22:29 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 11:37:03 +0000 (13:37 +0200)
commit1f056b1894b8d876b7429215758fe829594c278c
treeee78c4455c43d48f2fb8d4425084db1b5d4a6bdf
parent00080dc6cceae4ccee38aa756a2dc6b982a65d82
net: hostap: fix function cast warning

gcc -Wextra complains about the function type cast:

drivers/net/wireless/intersil/hostap/hostap_hw.c:3173:48: warning: cast between incompatible function types from ‘void (*)(struct tasklet_struct *)’ to ‘void (*)(long unsigned int)’ [-Wcast-function-type]

Avoid this by just using the regular tasklet_setup() function instead
of the incorrect homegrown version.

Fixes: 9140d2e25b14 ("intersil: convert tasklets to use new tasklet_setup() API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201026213040.3889546-2-arnd@kernel.org
drivers/net/wireless/intersil/hostap/hostap_hw.c