]> xenbits.xensource.com Git - libvirt.git/commitdiff
virNetDevOpenvswitchUpdateVlan: Use space for indentation
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Feb 2022 12:09:48 +0000 (13:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 10 Feb 2022 12:10:35 +0000 (13:10 +0100)
Breaks syntax-check:

TAB_in_indentation
/home/pipo/libvirt/src/util/virnetdevopenvswitch.c:610: if (virtVlan && virtVlan->nTags > 0)
/home/pipo/libvirt/src/util/virnetdevopenvswitch.c:611: virCommandAddArgList(cmd, "--", "--if-exists", "set", "Port", ifname, NULL);
make: Leaving directory '/home/pipo/build/libvirt/gcc/build-aux'

Fixes: 21c55a45efab47f2c8edc25d4fcabc1b99b6628c
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/util/virnetdevopenvswitch.c

index 227c04077d9d20458b4ab8cf17cb5c839e6126ba..7418716600ad0b7fd4486bfc77e3a87258e5cac2 100644 (file)
@@ -607,8 +607,8 @@ int virNetDevOpenvswitchUpdateVlan(const char *ifname,
                          "--", "--if-exists", "clear", "Port", ifname, "trunk",
                          "--", "--if-exists", "clear", "Port", ifname, "vlan_mode", NULL);
 
-       if (virtVlan && virtVlan->nTags > 0)
-               virCommandAddArgList(cmd, "--", "--if-exists", "set", "Port", ifname, NULL);
+    if (virtVlan && virtVlan->nTags > 0)
+        virCommandAddArgList(cmd, "--", "--if-exists", "set", "Port", ifname, NULL);
 
     virNetDevOpenvswitchConstructVlans(cmd, virtVlan);