]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: refactor hostif_sme_power_mgmt_set function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:38 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:40 +0000 (18:58 -0700)
commit002cb845605b9cae9a2c687f49453aa894e36161
treeaaf166bd5ba7770463d2f15b66b1f30f505d9fc2
parent768fe8119ab155e62af4fa2dc7e09d5a69421095
staging: ks7010: refactor hostif_sme_power_mgmt_set function

This commit refactor hostif_sme_power_mgmt_set avoiding to
use switch-case statement and simplifying data paths. This
improves readability.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c