mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
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>
This commit is contained in:
parent
431af77925
commit
1e9bbb9bc2
@ -310,7 +310,7 @@ pcmcia_bad:
|
|||||||
pcmcia_failed:
|
pcmcia_failed:
|
||||||
pcmcia_disable_device(pcmcia);
|
pcmcia_disable_device(pcmcia);
|
||||||
pcmcia->priv = NULL;
|
pcmcia->priv = NULL;
|
||||||
return ret ?: -ENODEV;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct pcmcia_device_id softingcs_ids[] = {
|
static const struct pcmcia_device_id softingcs_ids[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user