summaryrefslogtreecommitdiff
path: root/drivers/net/can/softing/softing_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/softing/softing_cs.c')
-rw-r--r--drivers/net/can/softing/softing_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/softing/softing_cs.c b/drivers/net/can/softing/softing_cs.c
index cdc0c7433a4b..4d4492884e0b 100644
--- a/drivers/net/can/softing/softing_cs.c
+++ b/drivers/net/can/softing/softing_cs.c
@@ -310,7 +310,7 @@ pcmcia_bad:
pcmcia_failed:
pcmcia_disable_device(pcmcia);
pcmcia->priv = NULL;
- return ret ?: -ENODEV;
+ return ret;
}
static const struct pcmcia_device_id softingcs_ids[] = {