staging: wilc1000: remove use of infinite loop conditions
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 17 Jan 2020 10:31:23 +0000 (10:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 08:53:45 +0000 (09:53 +0100)
commit9d442d2b9add140ddc2c5de6a0ac93050dfaef16
tree2f9c6eb9b739230529d558cf0b0a07ceca5a7c88
parentb5909c6d16fd4e3972b0cd48dedde08d55575342
staging: wilc1000: remove use of infinite loop conditions

Avoid the use of 'while (1)' infinite loop conditions. It's not
recommended to have infinite loop in kernel code because a small bug can
cause never ending loops so use terminator condition as suggested in
full driver review [1].

[1]. https://lore.kernel.org/linux-wireless/20191023100313.52B3F606CF@smtp.codeaurora.org/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200117160157.8706-2-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/netdev.c
drivers/staging/wilc1000/wlan.c
drivers/staging/wilc1000/wlan_cfg.c