OSDN Git Service

staging: ks7010: avoid if-else condition in ks_wlan_get_power
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 25 Apr 2018 14:01:52 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 07:35:04 +0000 (09:35 +0200)
commit1df964acca5a5e85de8aae30133ed8e7ef610f84
tree9d9ec138b2042a5c28cd857cb850653aba9890d2
parentf3b0bd23956524c8c98ce0a25f7b7bf897d4af85
staging: ks7010: avoid if-else condition in ks_wlan_get_power

The if-else code in ks_wlan_get_power function is not needed
at all and can be achieved with a simple boolean assignation.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c