]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
staging: ks7010: refactor ks_wlan_set_scan_type function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 25 Apr 2018 14:01:42 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 07:35:03 +0000 (09:35 +0200)
commit7a2cc8db50b801d9a384959a5b6c663559c139dd
tree37eecc9a94376fabe9663c9079afd3b1816a6b7a
parent25ee63eb2da2a908685c8318b891054accfc6d0d
staging: ks7010: refactor ks_wlan_set_scan_type function

This commit changes logic to handle invalid values first
and just assign valid ones afterwards.

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