firmware/ihex2fw.c: restore missing default in switch statement
Nicolas Iooss authored
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 <nicolas.iooss_linux@m4x.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
d43698e8
Name Last commit Last update
..
3com tokenring: delete all remaining driver support
acenic firmware: convert acenic driver to request_firmware()
adaptec starfire: use request_firmware()
advansys [SCSI] advansys: use request_firmware
av7110 firmware: convert av7110 driver to request_firmware()
bnx2 bnx2: Update firmware and version
bnx2x bnx2x: Update firmware to 6.2.9
cis pcnet_cs: add cis of KTI PE520 pcmcia network card
cpia2 cpia2: use request_firmware()
cxgb3 firmware: Remove obsolete Chelsio cxgb3 firmware
dsp56k make firmware/dsp56k/bootstrap.asm buildable on a56
e100 firmware: convert e100 driver to request_firmware()
edgeport edgeport-ti: use request_firmware()
emi26 emi26: use request_firmware()
emi62 USB: emi62: Provide the correct bitstream firmware
ess firmware: convert maestro3 driver to use firmware loader exclusively
kaweth kaweth: use request_firmware()
keyspan keyspan: use request_firmware()
keyspan_pda Update broken web addresses in the kernel.
korg firmware: convert korg1212 driver to use firmware loader exclusively
matrox drm/mga: Use request_firmware() to load microcode
myricom myri_sbus: use request_firmware
ositech smc91c92_cs: use request_firmware
qlogic firmware,IB/qib: revert firmware file move
r128 drm/r128: Use request_firmware() to load CCE microcode
radeon
sb16
sun
tehuti
tigon
ttusb-budget
vicam
yam
yamaha
.gitignore
Makefile
README.AddingFirmware
WHENCE
atmsar11.HEX
ihex2fw.c
mts_cdma.fw.ihex
mts_edge.fw.ihex
mts_gsm.fw.ihex
ti_3410.fw.ihex
ti_5052.fw.ihex
whiteheat.HEX
whiteheat_loader.HEX
whiteheat_loader_debug.HEX