]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: vni: Remove unused argument in open_vni_port()
authorBenjamin Poirier <bpoirier@nvidia.com>
Mon, 11 Dec 2023 14:07:26 +0000 (09:07 -0500)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 22 Dec 2023 17:54:23 +0000 (09:54 -0800)
Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
bridge/vni.c

index 0d8c1d34b166fca6ed1b342b9da03fa8c6023748..44781b01d20b678587d23bfaa6c2cdc98c02f7f0 100644 (file)
@@ -147,7 +147,7 @@ static int vni_modify(int cmd, int argc, char **argv)
        return 0;
 }
 
-static void open_vni_port(int ifi_index, const char *fmt)
+static void open_vni_port(int ifi_index)
 {
        open_json_object(NULL);
        print_color_string(PRINT_ANY, COLOR_IFNAME, "ifname",
@@ -334,7 +334,7 @@ int print_vnifilter_rtm(struct nlmsghdr *n, void *arg)
                        continue;
 
                if (!opened) {
-                       open_vni_port(tmsg->ifindex, "%s");
+                       open_vni_port(tmsg->ifindex);
                        opened = true;
                } else {
                        print_string(PRINT_FP, NULL, "%-" __stringify(IFNAMSIZ) "s  ", "");