Skip to content

Commit d50c837

Browse files
Ariel Otilibilimarckleinebudde
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 1263e69 commit d50c837

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/can/dev/dev.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ const char *can_get_state_str(const enum can_state state)
8585
default:
8686
return "<unknown>";
8787
}
88-
89-
return "<unknown>";
9088
}
9189
EXPORT_SYMBOL_GPL(can_get_state_str);
9290

0 commit comments

Comments
 (0)