staging: wilc1000: remove unnecessary always true 'if' conditions
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 2 Mar 2020 16:22:35 +0000 (16:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 06:55:02 +0000 (07:55 +0100)
commitf79a8a85cc5294733724f48cfc1fc167622e513b
tree3867ef8f81bbfdd642e3736f3d29c4a4025fff73
parentefabc44b8004b83cb91ed1242b9ce7622a91b0f5
staging: wilc1000: remove unnecessary always true 'if' conditions

Remove the unnecessary always true 'if' conditions and simiplifed the
logic as suggested in [1].

[1]. https://lore.kernel.org/linux-wireless/20200302092346.GA24308@kadam/

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200302162226.4196-3-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/cfg80211.c
drivers/staging/wilc1000/wlan.c