提交 1ea1572a 编写于 作者: M Marc-André Lureau 提交者: Markus Armbruster

pc: use get_uint() for "iobase" property

TYPE_ISA_FDC's property "iobase" is defined with DEFINE_PROP_UINT32().
Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-31-marcandre.lureau@redhat.com>
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
上级 60555365
...@@ -347,7 +347,7 @@ static int check_fdc(Object *obj, void *opaque) ...@@ -347,7 +347,7 @@ static int check_fdc(Object *obj, void *opaque)
return 0; return 0;
} }
iobase = object_property_get_int(obj, "iobase", &local_err); iobase = object_property_get_uint(obj, "iobase", &local_err);
if (local_err || iobase != 0x3f0) { if (local_err || iobase != 0x3f0) {
error_free(local_err); error_free(local_err);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册