Commit d43698e8 authored by Nicolas Iooss's avatar Nicolas Iooss Committed by Linus Torvalds

firmware/ihex2fw.c: restore missing default in switch statement

Commit 2473238e ("ihex: add support for CS:IP/EIP records") removes
the "default:" statement in the switch block, making the "return
usage();" line dead code and ihex2fw silently ignoring unknown options.
Restore this statement.

This bug was found by building with HOSTCC=clang and adding
-Wunreachable-code-return to HOSTCFLAGS.

Fixes: 2473238e ("ihex: add support for CS:IP/EIP records")
Signed-off-by: default avatarNicolas Iooss <>
Cc: Mark Brown <>
Cc: David Woodhouse <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 2afe27c7
......@@ -86,6 +86,7 @@ int main(int argc, char **argv)
case 'j':
include_jump = 1;
return usage();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment