summaryrefslogtreecommitdiffstats
path: root/hw/xen_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xen_console.c')
-rw-r--r--hw/xen_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_console.c b/hw/xen_console.c
index 27f809d..4280000 100644
--- a/hw/xen_console.c
+++ b/hw/xen_console.c
@@ -189,7 +189,7 @@ static int con_init(struct XenDevice *xendev)
free(dom);
type = xenstore_read_str(con->console, "type");
- if (!type || 0 != strcmp(type, "ioemu")) {
+ if (!type || strcmp(type, "ioemu" != 0)) {
xen_be_printf(xendev, 1, "not for me (type=%s)\n", type);
return -1;
}
OpenPOWER on IntegriCloud