[RESEND PATCH 37/47] staging: ks7010: refactor ks_wlan_set_sleep_mode function

2018-05-03 Thread Sergio Paracuellos
This commit refactors ks_wlan_set_sleep_mode function avoiding to use switch-case statement ans using simple if logic to handle invalid values first. This simplifies data paths as well as improves readability. Signed-off-by: Sergio Paracuellos ---

[PATCH 37/47] staging: ks7010: refactor ks_wlan_set_sleep_mode function

2018-04-30 Thread Sergio Paracuellos
This commit refactors ks_wlan_set_sleep_mode function avoiding to use switch-case statement ans using simple if logic to handle invalid values first. This simplifies data paths as well as improves readability. Signed-off-by: Sergio Paracuellos ---