Browse Source

staging:wlan-ng:Fix sparse warning cast to restricted __le16

This patch fixes the following sparse warnings:
drivers/staging/wlan-ng/hfa384x_usb.c:3582:14: warning: cast to
restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:3584:19: warning: cast to
restricted __le16
by changing the annotations in the struct declaration.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Himangi Saraogi 11 years ago
parent
commit
8cbe56e09c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/staging/wlan-ng/hfa384x.h

+ 2 - 2
drivers/staging/wlan-ng/hfa384x.h

@@ -531,14 +531,14 @@ typedef struct hfa384x_rx_frame {
 	u16 reserved2;
 	u16 reserved2;
 
 
 	/*-- 802.11 Header Information (802.11 byte order) --*/
 	/*-- 802.11 Header Information (802.11 byte order) --*/
-	u16 frame_control;
+	__le16 frame_control;
 	u16 duration_id;
 	u16 duration_id;
 	u8 address1[6];
 	u8 address1[6];
 	u8 address2[6];
 	u8 address2[6];
 	u8 address3[6];
 	u8 address3[6];
 	u16 sequence_control;
 	u16 sequence_control;
 	u8 address4[6];
 	u8 address4[6];
-	u16 data_len;		/* hfa384x (little endian) format */
+	__le16 data_len;		/* hfa384x (little endian) format */
 
 
 	/*-- 802.3 Header Information --*/
 	/*-- 802.3 Header Information --*/
 	u8 dest_addr[6];
 	u8 dest_addr[6];