]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix enum-conversion warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 21:29:56 +0000 (22:29 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 08:08:33 +0000 (10:08 +0200)
commit7f2ceb930481c8d4c13d0fe1a40761f872f56007
tree795f053eb2db391b2ae5085ab3232e43a7a101bd
parentcde4e769123c24ffecb0c04a0e60e185c70093c7
ath6kl: fix enum-conversion warning

gcc -Wextra points out a type mismatch

drivers/net/wireless/ath/ath6kl/wmi.c: In function 'ath6kl_wmi_cmd_send':
drivers/net/wireless/ath/ath6kl/wmi.c:1825:19: warning: implicit conversion from 'enum <anonymous>' to 'enum wmi_data_hdr_data_type' [-Wenum-conversion]
 1825 |            false, false, 0, NULL, if_idx);
      |                   ^~~~~

As far as I can tell, the numeric value is current here,
so just use the correct enum literal instead of 'false'.

Fixes: 20ba10092094 ("Add ath6kl cleaned up driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201026213040.3889546-9-arnd@kernel.org
drivers/net/wireless/ath/ath6kl/wmi.c