qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qdev: Ignore Error objects where the return value suffices

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200707160613.848843-45-armbru@redhat.com>

+1 -4
+1 -4
hw/core/qdev-properties.c
··· 742 742 Property *prop = opaque; 743 743 int32_t value, *ptr = qdev_get_prop_ptr(dev, prop); 744 744 unsigned int slot, fn, n; 745 - Error *local_err = NULL; 746 745 char *str; 747 746 748 747 if (dev->realized) { ··· 750 749 return; 751 750 } 752 751 753 - if (!visit_type_str(v, name, &str, &local_err)) { 754 - error_free(local_err); 755 - local_err = NULL; 752 + if (!visit_type_str(v, name, &str, NULL)) { 756 753 if (!visit_type_int32(v, name, &value, errp)) { 757 754 return; 758 755 }