can: kvaser_usb: kvaser_usb_send_cmd(): remove redundant variable actual_len
The function usb_bulk_msg() can be called with a NULL pointer as the "actual_length" parameter. This patch removes this variable. Link: https://lore.kernel.org/all/20220124215642.3474154-9-mkl@pengutronix.de Cc: Jimmy Assarsson <extja@kvaser.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Родитель
5597f082fc
Коммит
1c256e3a2c
|
@ -205,12 +205,10 @@ MODULE_DEVICE_TABLE(usb, kvaser_usb_table);
|
|||
|
||||
int kvaser_usb_send_cmd(const struct kvaser_usb *dev, void *cmd, int len)
|
||||
{
|
||||
int actual_len; /* Not used */
|
||||
|
||||
return usb_bulk_msg(dev->udev,
|
||||
usb_sndbulkpipe(dev->udev,
|
||||
dev->bulk_out->bEndpointAddress),
|
||||
cmd, len, &actual_len, KVASER_USB_TIMEOUT);
|
||||
cmd, len, NULL, KVASER_USB_TIMEOUT);
|
||||
}
|
||||
|
||||
int kvaser_usb_recv_cmd(const struct kvaser_usb *dev, void *cmd, int len,
|
||||
|
|
Загрузка…
Ссылка в новой задаче