xics_kvm: fix a build break
authorCédric Le Goater <clg@kaod.org>
Tue, 12 Jun 2018 10:11:35 +0000 (12:11 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16:32 +1000)
commit52b438815ecc1cb799d943ef4fd710fe67cc7702
treed33c730809a3046913d2f64402f8d06bf1c1ab87
parentd811d61fbc6ca5f2be2185fd7cfa916e7ba613ce
xics_kvm: fix a build break

On CentOS 7.5, gcc-4.8.5-28.el7_5.1.ppc64le fails to build QEMU due to :

  hw/intc/xics_kvm.c: In function ‘ics_set_kvm_state’:
  hw/intc/xics_kvm.c:281:13: error: ‘ret’ may be used uninitialized in this
    function [-Werror=maybe-uninitialized]
             return ret;

Fix the breakage and also remove the extra error reporting as
kvm_device_access() already provides a substantial error message.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics_kvm.c