linux/drivers/net/can/usb
Vincent Mailhol f4f5247daa can: etas_es58x: rewrite the message cast in es58{1,_fd}_tx_can_msg to increase readability
The es581_tx_can_msg() does below cast:
|	tx_can_msg = (struct es581_4_tx_can_msg *)
|	    &es581_4_urb_cmd->bulk_tx_can_msg.tx_can_msg_buf[msg_len - 1];

The -1 offset is to skip the first member of struct
es581_4_tx_can_msg. However, es581_4_urb_cmd already has a raw_msg
field which can be used instead without the use of an offset
calculation.

The function es58x_fd_tx_can_msg() is also modified to mirror
es581_tx_can_msg().

Link: https://lore.kernel.org/r/20210628155420.1176217-7-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2021-07-25 11:36:28 +02:00
..
etas_es58x can: etas_es58x: rewrite the message cast in es58{1,_fd}_tx_can_msg to increase readability 2021-07-25 11:36:28 +02:00
kvaser_usb can: kvaser_usb: Add new Kvaser hydra devices 2021-05-27 09:42:23 +02:00
peak_usb can: peak_usb: pcan_usb_decode_error(): upgrade handling of bus state changes 2021-07-25 11:36:28 +02:00
ems_usb.c net: can: ems_usb: fix use-after-free in ems_usb_disconnect() 2021-06-19 23:54:00 +02:00
esd_usb2.c can: esd_usb2: use DEVICE_ATTR_RO() helper macro 2021-07-25 11:36:26 +02:00
gs_usb.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
Kconfig can: kvaser_usb: Add new Kvaser hydra devices 2021-05-27 09:42:23 +02:00
Makefile can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces 2021-04-13 10:15:42 +02:00
mcba_usb.c can: mcba_usb: fix memory leak in mcba_usb 2021-06-16 12:52:18 +02:00
ucan.c can: ucan: fix alignment constraints 2021-03-30 11:14:46 +02:00
usb_8dev.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00