Now, object_parse_property_opt() is only used for -accel, which would
also have the need to deprecate properties.
So, use object_property_parse_with_check() for -accel.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
system/vl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/vl.c b/system/vl.c
index 5091fe52d925..e1bcd4d713d7 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -1709,7 +1709,7 @@ static int object_parse_property_opt(Object *obj,
return 0;
}
- if (!object_property_parse(obj, name, value, errp)) {
+ if (!object_property_parse_with_check(obj, name, value, errp)) {
return -1;
}
--
2.34.1