[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1499056899-1249-1-git-send-email-janusz.lisiecki@gmail.com>
Date: Mon, 3 Jul 2017 06:41:38 +0200
From: Janusz Lisiecki <janusz.lisiecki@...il.com>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linux Driver Project Developer List
<driverdev-devel@...uxdriverproject.org>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Janusz Lisiecki <janusz.lisiecki@...il.com>
Subject: [PATCH 0/1] Fix cast to restricted __le16 in ks7010 driver
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
Powered by blists - more mailing lists