diff options
| author | Marc Kleine-Budde <[email protected]> | 2023-02-08 09:26:33 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2023-07-28 07:43:40 +0000 |
| commit | 5c6c313acdfc3455b20ac1dc9655aa4afcf51ab1 (patch) | |
| tree | ffee54d6683d446d527ce30340c1840b634dcae5 /tools/net/ynl/generated/netdev-user.c | |
| parent | can: gs_usb: gs_can_start_xmit(), gs_can_open(): clean up printouts in error ... (diff) | |
| download | kernel-5c6c313acdfc3455b20ac1dc9655aa4afcf51ab1.tar.gz kernel-5c6c313acdfc3455b20ac1dc9655aa4afcf51ab1.zip | |
can: gs_usb: gs_can_close(): don't complain about failed device reset during ndo_stop
When the USB device is unplugged, gs_can_close() (which implements the
struct net_device_ops::ndo_stop callback) is called. In this function
an attempt is made to shut down the USB device with a USB control
message. For disconnected devices this will fail and a warning message
is printed.
Silence the driver by removing the printout of the error message if
the reset command fails.
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions
