qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] hw/arm/boot: fix uninitialized scalar variab


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2] hw/arm/boot: fix uninitialized scalar variable warning reported by coverity
Date: Tue, 25 Nov 2014 14:48:46 +0000

On 24 November 2014 at 10:50, zhanghailiang
<address@hidden> wrote:
> Coverity reports the 'size' may be used uninitialized, but that can't happen,
> because the caller has checked "if (binfo->dtb_filename || binfo->get_dtb)"
> before call 'load_dtb'.
>
> Here we simply remove the 'if (binfo->get_dtb)' to satisfy coverity.
>
> Signed-off-by: zhanghailiang <address@hidden>
> ---
> v2:
> - add a note to the doc comment for load_dtb (Peter Maydell)
>   Thanks for comment.



Applied to target-arm.next, thanks.

-- PMM



reply via email to

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