mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
firmware/ihex2fw.c: restore missing default in switch statement
commit d43698e8abb58a6ac47d16e0f47bb55f452e4fc4 upstream. 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 <nicolas.iooss_linux@m4x.org> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
b7cecd38cf
commit
241cb82322
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