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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c
index 5720e84fc9..570c0333fc 100644
--- a/hw/s390x/virtio-ccw-crypto.c
+++ b/hw/s390x/virtio-ccw-crypto.c
@@ -19,10 +19,8 @@ static void virtio_ccw_crypto_realize(VirtioCcwDevice *ccw_dev, Error **errp)
{
VirtIOCryptoCcw *dev = VIRTIO_CRYPTO_CCW(ccw_dev);
DeviceState *vdev = DEVICE(&dev->vdev);
- Error *err = NULL;
- if (!qdev_realize(vdev, BUS(&ccw_dev->bus), &err)) {
- error_propagate(errp, err);
+ if (!qdev_realize(vdev, BUS(&ccw_dev->bus), errp)) {
return;
}