aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Körper <thomas.koerper@esd.eu>2015-03-16 04:48:29 -0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-03-22 18:50:12 -0400
commit6d5a7a65a928d317c8767613d98ce38bb62f23fa (patch)
treec146ac8233156b3f86b2296fad9deff441d25621
parentc54eb70e3bb8cd0d7b8564bedab63e834656c567 (diff)
can: esd_usb2: Fix sparse warnings
The hnd field of the structs does not need to be __le32: the device just returns the value without using it itself. Signed-off-by: Thomas Körper <thomas.koerper@esd.eu> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--drivers/net/can/usb/esd_usb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/usb/esd_usb2.c b/drivers/net/can/usb/esd_usb2.c
index bacca0bd89c1..411c1af92c62 100644
--- a/drivers/net/can/usb/esd_usb2.c
+++ b/drivers/net/can/usb/esd_usb2.c
@@ -139,7 +139,7 @@ struct tx_msg {
139 u8 cmd; 139 u8 cmd;
140 u8 net; 140 u8 net;
141 u8 dlc; 141 u8 dlc;
142 __le32 hnd; 142 u32 hnd; /* opaque handle, not used by device */
143 __le32 id; /* upper 3 bits contain flags */ 143 __le32 id; /* upper 3 bits contain flags */
144 u8 data[8]; 144 u8 data[8];
145}; 145};
@@ -149,7 +149,7 @@ struct tx_done_msg {
149 u8 cmd; 149 u8 cmd;
150 u8 net; 150 u8 net;
151 u8 status; 151 u8 status;
152 __le32 hnd; 152 u32 hnd; /* opaque handle, not used by device */
153 __le32 ts; 153 __le32 ts;
154}; 154};
155 155