OSDN Git Service

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)
commit9fdd02aa59886300b60e1cc0a4af3653796d9bd8
treeee78c4455c43d48f2fb8d4425084db1b5d4a6bdf
parent3287953b03994870c249ec57f55967cd1f7afbb8
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: 7433c9690318 ("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