]> git.baikalelectronics.ru Git - kernel.git/commit
cw1200: Fix a signedness bug in cw1200_load_firmware()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Oct 2019 11:45:01 +0000 (14:45 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Oct 2019 04:34:51 +0000 (07:34 +0300)
commite6ae0f85328e96c7ff08ad1f62423d1ced73f1cd
tree2c69aaa4b69c419339748aac4584d59bb26c089b
parentda0ea4e93cb42c5b0f79f9760b6690c6301f46b8
cw1200: Fix a signedness bug in cw1200_load_firmware()

The "priv->hw_type" is an enum and in this context GCC will treat it
as an unsigned int so the error handling will never trigger.

Fixes: 657284180c03 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/fwio.c