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

This commit refactor a bit ks_get_wireless_stats using
ternary operator for return code. It also change a comment
to use preferred style.

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