]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: refactor ks_wlan_set_preamble function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 25 Apr 2018 14:01:44 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 07:35:03 +0000 (09:35 +0200)
commitfd7594146513e0703c0e128449986671f828332e
tree68b1e966490213b8d387f7031f8b9f1f2341d57b
parente871dea923adf7e8dbe49ac390d3f7515ac68144
staging: ks7010: refactor ks_wlan_set_preamble function

Change if logic to handle invalid values first and just
assign at the end the valid one if it is the case.

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