]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
can: softing_cs: ret is never non-zero, so remove non-zero check and -ENODEV return
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Jan 2017 15:02:38 +0000 (15:02 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 24 Jan 2017 12:52:00 +0000 (13:52 +0100)
commit1e9bbb9bc2aa549d31fa0a0496ec33df0b3ae7a8
tree079576501244483893ebf14042d88fbc1f556fed
parent431af779256cd6cb8328ac23c5696bae63c33a51
can: softing_cs: ret is never non-zero, so remove non-zero check and -ENODEV return

The error return ret is never zero in the error handling path in
softingcs_probe, so the check for non-zero and returning -ENODEV
is logically dead code and hence redundant.  Remove it and just
return ret.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/softing/softing_cs.c