OSDN Git Service

can: gs_usb: fix return value of the "set_bittiming" callback
authorWolfgang Grandegger <wg@grandegger.com>
Wed, 13 Dec 2017 18:52:23 +0000 (19:52 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 4 Jan 2018 15:14:38 +0000 (16:14 +0100)
commitd5b42e6607661b198d8b26a0c30969605b1bf5c7
treea5b41db4955ac91ee71657ab16619f670a80edfb
parentb4c2951a4833e66f1bbfe65ddcd4fdcdfafe5e8f
can: gs_usb: fix return value of the "set_bittiming" callback

The "set_bittiming" callback treats a positive return value as error!
For that reason "can_changelink()" will quit silently after setting
the bittiming values without processing ctrlmode, restart-ms, etc.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c