Re: [Qemu-devel] [PATCH] pflash_cfi01: Fix warning caused by unreachable code

2012-09-20 Thread Stefan Weil
Am 01.09.2012 13:00, schrieb Stefan Weil: 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

[Qemu-devel] [PATCH] pflash_cfi01: Fix warning caused by unreachable code

2012-09-01 Thread Stefan Weil
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 als