summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-04 06:16:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 18:58:40 -0700
commit7f3c8bb5bcf3a133d1eeb171cf90888bc5253a69 (patch)
tree70458264796fb2d4eb36a19c5b6c2c25b30e4c8c /tools/perf/scripts/python/bin
parent97d173c64301427174e144eeda4cb7af756589b6 (diff)
downloadlinux-7f3c8bb5bcf3a133d1eeb171cf90888bc5253a69.tar.gz
linux-7f3c8bb5bcf3a133d1eeb171cf90888bc5253a69.zip
staging: ks7010: refactor ks_wlan_set_sleep_mode function
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 <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions