[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH v2] hw/arm/boot: fix uninitialized scalar vari
Re: [Qemu-trivial] [PATCH v2] hw/arm/boot: fix uninitialized scalar variable warning reported by coverity
Tue, 25 Nov 2014 14:48:46 +0000
On 24 November 2014 at 10:50, zhanghailiang
> 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>
> - add a note to the doc comment for load_dtb (Peter Maydell)
> Thanks for comment.
Applied to target-arm.next, thanks.