qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-trivial] [PATCH] pflash_cfi01: Fix warning caused


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] pflash_cfi01: Fix warning caused by unreachable code
Date: Sat, 22 Sep 2012 16:44:08 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Sep 01, 2012 at 01:00:48PM +0200, Stefan Weil wrote:
> 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 <address@hidden>
> ---
>  hw/pflash_cfi01.c |    8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]