]> Git Repo - linux.git/commitdiff
Staging: rtl8192e: Fix Sparse warning of cast to restricted __le16 in rtllib_crypt_tkip.c
authorRashika Kheria <[email protected]>
Thu, 7 Nov 2013 13:39:25 +0000 (19:09 +0530)
committerGreg Kroah-Hartman <[email protected]>
Sun, 10 Nov 2013 20:02:22 +0000 (12:02 -0800)
This patch fixes the following Sparse warnings in rtllib_crypt_tkip.c-
drivers/staging/rtl8192e/rtllib_crypt_tkip.c:176:16: warning: cast to restricted __le16

Signed-off-by: Rashika Kheria <[email protected]>
Reviewed-by: Peter P Waskiewicz Jr <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/rtl8192e/rtllib_crypt_tkip.c

index 5cfd73baf1cc489325054afdaaa92b6f2c0192a7..d85802ee528b5e5ac146b942b13eb593278da36c 100644 (file)
@@ -173,7 +173,7 @@ static inline u16 Mk16(u8 hi, u8 lo)
 
 static inline u16 Mk16_le(u16 *v)
 {
-       return le16_to_cpu(*v);
+       return *v;
 }
 
 
This page took 0.05533 seconds and 4 git commands to generate.