diff options
| author | 2018-04-25 16:01:55 +0200 | |
|---|---|---|
| committer | 2018-04-26 09:35:04 +0200 | |
| commit | bcb53e8a466f2a95b2f3089006931b0b5984103b (patch) | |
| tree | 2abd2dbf993a5e4c4f36d62dcc996111764b618b /kernel/sysctl_binary.c | |
| parent | staging: ks7010: avoid blank line between declarations in ks_wlan_get_aplist (diff) | |
staging: ks7010: refactor ks_wlan_translate_scan function
This commit refactors ks_wlan_translate_scan function with
the following changes:
- reorder local variables
- use ether_addr_copy to copy ethernet addresses
- change style in 'current_ev' variable assignments
- make use of some ternaries avoiding if-else code
- use preferred style for comments
- extract common code into a new ks_wlan_add_leader_event
function
After this changes readability has been improved.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
