Skip to content

Commit

Permalink
can: esd_usb2: Fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Körper authored and Marc Kleine-Budde committed Mar 22, 2015
1 parent c54eb70 commit 6d5a7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/can/usb/esd_usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct tx_msg {
u8 cmd;
u8 net;
u8 dlc;
__le32 hnd;
u32 hnd; /* opaque handle, not used by device */
__le32 id; /* upper 3 bits contain flags */
u8 data[8];
};
Expand All @@ -149,7 +149,7 @@ struct tx_done_msg {
u8 cmd;
u8 net;
u8 status;
__le32 hnd;
u32 hnd; /* opaque handle, not used by device */
__le32 ts;
};

Expand Down

0 comments on commit 6d5a7a6

Please sign in to comment.