wilc1000: remove '-Wunused-but-set-variable' warning in chip_wakeup()
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 15 Nov 2021 10:28:28 +0000 (10:28 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 26 Nov 2021 16:32:51 +0000 (18:32 +0200)
commitd1e69b5492d1826356e516685977b41d60dbee26
tree81fe56455f5be6aa2c8af346c567870d0f96e1de
parent7ce1f2157e14170413ba5ecb462153131704754c
wilc1000: remove '-Wunused-but-set-variable' warning in chip_wakeup()

Remove unused variables to avoid the below warnings:

   drivers/net/wireless/microchip/wilc1000/wlan.c: In function 'chip_wakeup':
>> drivers/net/wireless/microchip/wilc1000/wlan.c:620:34: warning: variable 'to_host_from_fw_bit' set but not used [-Wunused-but-set-variable]
     620 |         u32 to_host_from_fw_reg, to_host_from_fw_bit;
         |                                  ^~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/microchip/wilc1000/wlan.c:620:13: warning: variable 'to_host_from_fw_reg' set but not used [-Wunused-but-set-variable]
     620 |         u32 to_host_from_fw_reg, to_host_from_fw_bit;
         |             ^~~~~~~~~~~~~~~~~~~

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211115102809.1408267-1-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/wlan.c