]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcba_usb: remove redundant initialization of variable err
authorColin Ian King <colin.king@canonical.com>
Mon, 6 Jul 2020 16:42:40 +0000 (17:42 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2020 08:13:17 +0000 (10:13 +0200)
commitaff3725114a07b933e95b9e743d220a01b82ced8
treed3ea392f9ffcdc3f00ef4be4e77f874bdcfa331c
parenta4eae65efc49f2044cf245835a6de8eb8bd2e8a9
can: mcba_usb: remove redundant initialization of variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200706164240.518623-1-colin.king@canonical.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/mcba_usb.c