diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/qdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ static int set_property(const char *name, const char *value, void *opaque) if (strcmp(name, "bus") == 0) return 0; - if (-1 == qdev_prop_parse(dev, name, value)) { + if (qdev_prop_parse(dev, name, value) == -1) { qemu_error("can't set property \"%s\" to \"%s\" for \"%s\"\n", name, value, dev->info->name); return -1; |