Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1679639

[PATCH 0/1] Fix cast to restricted __le16 in ks7010 driver

From Janusz Lisiecki <janusz.lisiecki@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/1] Fix cast to restricted __le16 in ks7010 driver
Date 2017-07-03 06:50 +0200
Message-ID <tZ1t7-4u1-1@gated-at.bofh.it> (permalink)
References <tYQR3-58Q-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch fixes Sparse warining found in ks_wlan_net.c. This seems
to be last of it reported by Sparse for that driver.
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), so le16_to_cpu() on it is wrong and must be removed.
As this is not HW related structure we are free to choose its byte
order and it is easier just to remove one wrong casting than rework
all other places to treat it as __le16.

Janusz Lisiecki (1):
  staging: ks7010: Fix warning of cast to restricted __le16 in
    ks_wlan_net.c

 drivers/staging/ks7010/ks_wlan_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/1] Fix cast to restricted __le16 in ks7010 driver Janusz Lisiecki <janusz.lisiecki@gmail.com> - 2017-07-02 19:30 +0200
  [PATCH 0/1] Fix cast to restricted __le16 in ks7010 driver Janusz Lisiecki <janusz.lisiecki@gmail.com> - 2017-07-03 06:50 +0200
    [PATCH 1/1] staging: ks7010: Fix cast to restricted __le16 in ks_wlan_net.c Janusz Lisiecki <janusz.lisiecki@gmail.com> - 2017-07-03 06:50 +0200

csiph-web