aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-04-21 20:27:10 +0800
committerMarkus Armbruster <armbru@redhat.com>2017-04-24 09:13:45 +0200
commit021c9d25b30f53f3e97ed3198f0a85c7db025174 (patch)
treeb50a82dc1977589115a6e5d0391d443cbccdfc2c /hw/s390x
parent4462a5307b198b98ef9f5c71e07c3d346e00a4e6 (diff)
downloadqemu-021c9d25b30f53f3e97ed3198f0a85c7db025174.zip
qemu-021c9d25b30f53f3e97ed3198f0a85c7db025174.tar.gz
qemu-021c9d25b30f53f3e97ed3198f0a85c7db025174.tar.bz2
error: Apply error_propagate_null.cocci again
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-15-famz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r--hw/s390x/virtio-ccw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index f376381..e7167e3 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -1761,9 +1761,7 @@ static void vhost_vsock_ccw_realize(VirtioCcwDevice *ccw_dev, Error **errp)
qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus));
object_property_set_bool(OBJECT(vdev), true, "realized", &err);
- if (err) {
- error_propagate(errp, err);
- }
+ error_propagate(errp, err);
}
static void vhost_vsock_ccw_class_init(ObjectClass *klass, void *data)