From: Nicolas Iooss Date: Thu, 16 Apr 2015 19:44:02 +0000 (-0700) Subject: firmware/ihex2fw.c: restore missing default in switch statement X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43698e8abb58a6ac47d16e0f47bb55f452e4fc4;p=pandora-kernel.git 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 Cc: Mark Brown Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed