Skip to content

Commit 1e9bbb9

Browse files
Colin Ian Kingmarckleinebudde
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 431af77 commit 1e9bbb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/softing/softing_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static int softingcs_probe(struct pcmcia_device *pcmcia)
310310
pcmcia_failed:
311311
pcmcia_disable_device(pcmcia);
312312
pcmcia->priv = NULL;
313-
return ret ?: -ENODEV;
313+
return ret;
314314
}
315315

316316
static const struct pcmcia_device_id softingcs_ids[] = {

0 commit comments

Comments
 (0)