]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
staging: ks7010: refactor ks_wlan_set_mode function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 24 Apr 2018 13:49:57 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:50:18 +0000 (15:50 +0200)
commit1e4c7fb3a54ec2b1be17c7d2d1b53c593f959a1d
tree677232541fea9aee2aac63b73d1625a27a40f4cc
parentb58e1ddaa25fc07ea995f3a0ccb5fcc0820f61f3
staging: ks7010: refactor ks_wlan_set_mode function

Most cases which are being handled in the switch-case of
ks_wlan_set_mode function are just returning EINVAL. Avoid
the use of switch-case stament and just use a simple if
to handle those. This decrease LOC as well as improves
readability.

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