Re: [Qemu-devel] [PATCH] hw/arm/boot: fix uninitialized scalar variable warning reported by coverity

2014-11-24 Thread Peter Maydell
On 24 November 2014 at 03:30, zhanghailiang zhang.zhanghaili...@huawei.com 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

Re: [Qemu-devel] [PATCH] hw/arm/boot: fix uninitialized scalar variable warning reported by coverity

2014-11-24 Thread zhanghailiang
On 2014/11/24 18:03, Peter Maydell wrote: On 24 November 2014 at 03:30, zhanghailiang zhang.zhanghaili...@huawei.com 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

[Qemu-devel] [PATCH] hw/arm/boot: fix uninitialized scalar variable warning reported by coverity

2014-11-23 Thread 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