staging: ks7010: refactor ks_wlan_set_wps_enable function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 19 Apr 2018 05:08:02 +0000 (07:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:32:05 +0000 (14:32 +0200)
commit6519967b959b2b412b6d6012f251a9d80e1f920c
treea57eb26981bda6dfa867bfd0d0357c5def8fd2b6
parent86357f794b9692e8754718183801ce5d6f163392
staging: ks7010: refactor ks_wlan_set_wps_enable function

This commit refactors ks_wlan_set_wps_enable function to
improve readability handling the error first to avoid an
'else'.

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