staging: ks7010: Fix cast to restricted __le16 in ks_wlan_net.c
authorJanusz Lisiecki <janusz.lisiecki@gmail.com>
Mon, 3 Jul 2017 04:41:39 +0000 (06:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:41:02 +0000 (08:41 +0200)
commit7b379dba14f8039fac06db0fced2e68b86570ddf
tree75a10311fb8a5d7b0be17c0ec2558d4c3494e88a
parent0c2310217b40af190b4a8ff79320088856c2f25c
staging: ks7010: Fix cast to restricted __le16 in ks_wlan_net.c

This patch fixes the following Sparse warnings in ks_wlan_net.c:
drivers/staging/ks7010/ks_wlan_net.c:1359:24: warning: cast to restricted __le16
link_ap_info_t structure field 'capability' has native order and is used everywhere
in the code in such way (i.e get_ap_information, get_current_ap). Both sides of
assignment are u16 (native order) so 'le16_to_cpu' is not needed and wrong.

Signed-off-by: Janusz Lisiecki <janusz.lisiecki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c