]> xenbits.xensource.com Git - libvirt.git/commitdiff
xen: Fix indentation in xenParseXLSpice
authorTim Wiederhake <twiederh@redhat.com>
Mon, 1 Feb 2021 12:41:59 +0000 (13:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Feb 2021 14:00:55 +0000 (15:00 +0100)
This was found by clang-tidy's "readability-misleading-indentation"
check.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/libxl/xen_xl.c

index 621ee63a99e324c0717db794d3e158fb1f871e10..6dcba43fe0243f4d44f62211d5231ddae92083be 100644 (file)
@@ -359,9 +359,8 @@ xenParseXLSpice(virConfPtr conf, virDomainDefPtr def)
 
             graphics->data.spice.port = (int)port;
 
-            if (!graphics->data.spice.tlsPort &&
-                !graphics->data.spice.port)
-            graphics->data.spice.autoport = 1;
+            if (!graphics->data.spice.tlsPort && !graphics->data.spice.port)
+                graphics->data.spice.autoport = 1;
 
             if (xenConfigGetBool(conf, "spicedisable_ticketing", &val, 0) < 0)
                 goto cleanup;