diff options
| author | Nicolas Iooss <[email protected]> | 2015-04-16 12:44:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-04-17 09:03:56 -0400 |
| commit | d43698e8abb58a6ac47d16e0f47bb55f452e4fc4 (patch) | |
| tree | 1fbc2c16c55a0b427b71f974a568823fa805e409 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 2afe27c718b669b551895595873611ac39cc31e3 (diff) | |
firmware/ihex2fw.c: restore missing default in switch statement
Commit 2473238eac95 ("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: 2473238eac95 ("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]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions