Re: [Qemu-devel] [PATCH] kvm: Fix warning from static code analysis

2012-09-05 Thread Stefan Hajnoczi
On Mon, Sep 03, 2012 at 10:40:40PM +0200, Stefan Weil wrote: > Report from smatch: > > kvm-all.c:1373 kvm_init(135) warn: > variable dereferenced before check 's' (see line 1360) > > 's' cannot by NULL (it was alloced using g_malloc0), so there is no need > to check it here. > > Signed-off-by:

Re: [Qemu-devel] [PATCH] kvm: Fix warning from static code analysis

2012-09-03 Thread Peter Maydell
On 3 September 2012 21:40, Stefan Weil wrote: > Report from smatch: > > kvm-all.c:1373 kvm_init(135) warn: > variable dereferenced before check 's' (see line 1360) > > 's' cannot by NULL (it was alloced using g_malloc0), so there is no need > to check it here. > > Signed-off-by: Stefan Weil Rev

[Qemu-devel] [PATCH] kvm: Fix warning from static code analysis

2012-09-03 Thread Stefan Weil
Report from smatch: kvm-all.c:1373 kvm_init(135) warn: variable dereferenced before check 's' (see line 1360) 's' cannot by NULL (it was alloced using g_malloc0), so there is no need to check it here. Signed-off-by: Stefan Weil --- kvm-all.c | 12 +--- 1 file changed, 5 insertions(+