Skip to content

Commit 6d5a7a6

Browse files
Thomas Körpermarckleinebudde
authored andcommitted
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>
1 parent c54eb70 commit 6d5a7a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/can/usb/esd_usb2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct tx_msg {
139139
u8 cmd;
140140
u8 net;
141141
u8 dlc;
142-
__le32 hnd;
142+
u32 hnd; /* opaque handle, not used by device */
143143
__le32 id; /* upper 3 bits contain flags */
144144
u8 data[8];
145145
};
@@ -149,7 +149,7 @@ struct tx_done_msg {
149149
u8 cmd;
150150
u8 net;
151151
u8 status;
152-
__le32 hnd;
152+
u32 hnd; /* opaque handle, not used by device */
153153
__le32 ts;
154154
};
155155

0 commit comments

Comments
 (0)