]> git.proxmox.com Git - qemu.git/blobdiff - vl.c
Fix coding style issue
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index eb01da7c65b7e836253463de9e7f171663b7906a..e7d923265e7434b952a7c167cd7a67d478ba6790 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -5142,7 +5142,7 @@ int main(int argc, char **argv, char **envp)
                     fprintf(stderr, "parse error: %s\n", optarg);
                     exit(1);
                 }
-                if (NULL == qemu_chr_open_opts(opts, NULL)) {
+                if (qemu_chr_open_opts(opts, NULL) == NULL) {
                     exit(1);
                 }
                 break;