[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1488448146-29452-6-git-send-email-singhalsimran0@gmail.com>
Date: Thu, 2 Mar 2017 15:19:06 +0530
From: simran singhal <singhalsimran0@...il.com>
To: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
sergio.paracuellos@...il.com, juliana.orod@...il.com,
thomas.petazzoni@...e-electrons.com, noralf@...nnes.org,
outreachy-kernel@...glegroups.com
Subject: [PATCH 6/6] staging: rtl8192u: Fix Sparse warning of cast to restricted __le16
This patch fixes the following Sparse warnings:-
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted __le16
Signed-off-by: simran singhal <singhalsimran0@...il.com>
---
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
index 4d6c928..713f1d6 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
@@ -174,7 +174,7 @@ static inline u16 Mk16(u8 hi, u8 lo)
static inline u16 Mk16_le(u16 *v)
{
- return le16_to_cpu(*v);
+ return *v;
}
--
2.7.4
Powered by blists - more mailing lists