]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba3f9ba50e5731ea5b0d9287b5ee85c9fb0bbbba
tree3867ef8f81bbfdd642e3736f3d29c4a4025fff73
parentea172f1f295e67e04c731e3542bbeea3eefadd63
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