diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-18 17:05:07 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-19 10:27:33 -0600 |
commit | 7db4c4e8e53fc6fe9fee3fe6f6e822f7f1549352 (patch) | |
tree | 17bbed2c3a87dc3776e564c1733d50f72b883ad7 /hw/qdev.c | |
parent | e3cb6ba65d265f2cc1313ee26e879407ff24663c (diff) |
qom: interpret the return value when setting legacy properties
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1162,10 +1162,7 @@ static void qdev_set_legacy_property(DeviceState *dev, Visitor *v, void *opaque, } ret = prop->info->parse(dev, prop, ptr); - if (ret != 0) { - error_set(errp, QERR_INVALID_PARAMETER_VALUE, - name, prop->info->name); - } + error_set_from_qdev_prop_error(errp, ret, dev, prop, ptr); g_free(ptr); } |