mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
firmware/ihex2fw.c: restore missing default in switch statement
Commit2473238eac("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:2473238eac("ihex: add support for CS:IP/EIP records") Signed-off-by: Nicolas Iooss <[email protected]> Cc: Mark Brown <[email protected]> Cc: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2afe27c718
commit
d43698e8ab
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ int main(int argc, char **argv)
|
|||
case 'j':
|
||||
include_jump = 1;
|
||||
break;
|
||||
default:
|
||||
return usage();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue