aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/virtio-ccw-crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/s390x/virtio-ccw-crypto.c')
-rw-r--r--hw/s390x/virtio-ccw-crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c
index ca6753bff3..36cfdf865c 100644
--- a/hw/s390x/virtio-ccw-crypto.c
+++ b/hw/s390x/virtio-ccw-crypto.c
@@ -21,8 +21,7 @@ static void virtio_ccw_crypto_realize(VirtioCcwDevice *ccw_dev, Error **errp)
DeviceState *vdev = DEVICE(&dev->vdev);
Error *err = NULL;
- qdev_realize(vdev, BUS(&ccw_dev->bus), &err);
- if (err) {
+ if (!qdev_realize(vdev, BUS(&ccw_dev->bus), &err)) {
error_propagate(errp, err);
return;
}