]> git.ipfire.org Git - thirdparty/qemu.git/commit
pflash_cfi01: Fix warning caused by unreachable code
authorStefan Weil <sw@weilnetz.de>
Sat, 1 Sep 2012 11:00:48 +0000 (13:00 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:20 +0000 (21:44 -0500)
commitf3e98930787bc1cf21d962dc121448dea713b891
tree58e6a8521c602718d9df7140dfb8d8a6d564a5a9
parent4d0fcc1968afbcd69be08849016300d20a8d4023
pflash_cfi01: Fix warning caused by unreachable code

Report from smatch:
hw/pflash_cfi01.c:431 pflash_write(180) info: ignoring unreachable code.

Instead of removing the return statement after the switch statement,
the patch replaces the return statements in the switch statement by
break statements. Other switch statements in the same code do it also
like that.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit 12dabc79f976d66755025272f7e2e8e4da31715a)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/pflash_cfi01.c