aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r--hw/qdev-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index c9703c261c..12ff46bf0b 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -273,7 +273,7 @@ static int print_pci_devfn(DeviceState *dev, Property *prop, char *dest, size_t
{
uint32_t *ptr = qdev_get_prop_ptr(dev, prop);
- if (-1 == *ptr) {
+ if (*ptr == -1) {
return snprintf(dest, len, "<unset>");
} else {
return snprintf(dest, len, "%02x.%x", *ptr >> 3, *ptr & 7);