Commit 0d34d816 authored by Chen Ni's avatar Chen Ni Committed by Marc Kleine-Budde

can: kvaser_usb: fix return value for hif_usb_send_regout

As the potential failure of usb_submit_urb(), it should be better to
return the err variable to catch the error.
Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/all/20240521041020.1519416-1-nichen@iscas.ac.cnSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 9ad1da14
...@@ -294,7 +294,7 @@ int kvaser_usb_send_cmd_async(struct kvaser_usb_net_priv *priv, void *cmd, ...@@ -294,7 +294,7 @@ int kvaser_usb_send_cmd_async(struct kvaser_usb_net_priv *priv, void *cmd,
} }
usb_free_urb(urb); usb_free_urb(urb);
return 0; return err;
} }
int kvaser_usb_can_rx_over_error(struct net_device *netdev) int kvaser_usb_can_rx_over_error(struct net_device *netdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment