can: dev: can_restart(): remove unused code
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sat, 21 Oct 2017 03:36:52 +0000 (22:36 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Nov 2019 20:57:28 +0000 (21:57 +0100)
commit371fd7baa81d2adb05c390f8f8a42a4f02173cbd
tree85ea1d344a1285fa3c50183b547611b76d4941a9
parent228200179213bfc9b4d6097e1c26de30bd18c1e6
can: dev: can_restart(): remove unused code

Value assigned to variable err is overwritten at line
562: err = priv->do_set_mode(dev, CAN_MODE_START); before
it can be used.

Also, notice that this code has been there since 2014.

Addresses-Coverity-ID: 1227031
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c