spapr/xive: Simplify kvmppc_xive_disconnect()
commite781139539f3d73ac00f2aea17f5a154b10e4302
authorGreg Kurz <groug@kaod.org>
Thu, 6 Aug 2020 16:56:13 +0000 (6 18:56 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Aug 2020 03:16:27 +0000 (12 13:16 +1000)
tree98f6f942cae578d86702a295024ba3e97fbf3ed9
parent82f086b5e7ec0adff5a3972f74c446325b4fef9a
spapr/xive: Simplify kvmppc_xive_disconnect()

Since this function begins with:

    /* The KVM XIVE device is not in use */
    if (!xive || xive->fd == -1) {
        return;
    }

we obviously don't need to check xive->fd again.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159673297296.766512.14780055521619233656.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive_kvm.c