Skip to content
Commit f3e98930 authored by Stefan Weil's avatar Stefan Weil Committed by Michael Roth
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit 12dabc79)

Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 4d0fcc19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment