[RESEND PATCH 38/47] staging: ks7010: refactor ks_wlan_set_phy_type function

2018-05-03 Thread Sergio Paracuellos
Handle invalid values first and assign good ones at the end if it is the case. This makes code simplier. Signed-off-by: Sergio Paracuellos --- drivers/staging/ks7010/ks_wlan_net.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git

[PATCH 38/47] staging: ks7010: refactor ks_wlan_set_phy_type function

2018-04-30 Thread Sergio Paracuellos
Handle invalid values first and assign good ones at the end if it is the case. This makes code simplier. Signed-off-by: Sergio Paracuellos --- drivers/staging/ks7010/ks_wlan_net.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git