diff options
author | Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr> | 2024-12-21 12:06:49 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-12-23 12:39:13 +0100 |
commit | d50c837675a95f733e53a5e21eb168f8c9f5a73d (patch) | |
tree | e6ae7be59287ba903f5e5cf870fdae6a92ae3b3e | |
parent | MAINTAINERS: assign em_canid.c additionally to CAN maintainers (diff) | |
download | linux-d50c837675a95f733e53a5e21eb168f8c9f5a73d.tar.xz linux-d50c837675a95f733e53a5e21eb168f8c9f5a73d.zip |
can: dev: can_get_state_str(): Remove dead code
The default switch case ends with a return; meaning this return is
never reached.
Coverity-ID: 1497123
Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr>
Link: https://patch.msgid.link/20241221111454.1074285-4-ariel.otilibili-anieli@eurecom.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | drivers/net/can/dev/dev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/can/dev/dev.c b/drivers/net/can/dev/dev.c index 6792c14fd7eb..93035a7d50f3 100644 --- a/drivers/net/can/dev/dev.c +++ b/drivers/net/can/dev/dev.c @@ -85,8 +85,6 @@ const char *can_get_state_str(const enum can_state state) default: return "<unknown>"; } - - return "<unknown>"; } EXPORT_SYMBOL_GPL(can_get_state_str); |