projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c54eb70
)
can: esd_usb2: Fix sparse warnings
author
Thomas Körper
<thomas.koerper@esd.eu>
Mon, 16 Mar 2015 08:48:29 +0000
(09:48 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Sun, 22 Mar 2015 22:50:12 +0000
(23:50 +0100)
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>
drivers/net/can/usb/esd_usb2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/usb/esd_usb2.c
b/drivers/net/can/usb/esd_usb2.c
index bacca0bd89c1ffc515bb352b73d4801de30c9f4a..411c1af92c62c1c93985e4adf7232d1b6b78d8bc 100644
(file)
--- a/
drivers/net/can/usb/esd_usb2.c
+++ b/
drivers/net/can/usb/esd_usb2.c
@@
-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];
};
@@
-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;
};