]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: Remove unused function argument
authorBenjamin Poirier <bpoirier@nvidia.com>
Tue, 15 Nov 2022 21:07:15 +0000 (16:07 -0500)
committerDavid Ahern <dsahern@kernel.org>
Wed, 16 Nov 2022 23:55:23 +0000 (16:55 -0700)
print_vnifilter_rtm() was probably modeled on print_vlan_rtm() but the
'monitor' argument is unused in the vnifilter case.

Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/br_common.h
bridge/monitor.c
bridge/vni.c

index da677df8c31f0631339d5684e16ba8225216f74c..1bdee65844c1a24361a3a3c63d2c745a65f55fe0 100644 (file)
@@ -14,7 +14,7 @@ void print_stp_state(__u8 state);
 int parse_stp_state(const char *arg);
 int print_vlan_rtm(struct nlmsghdr *n, void *arg, bool monitor,
                   bool global_only);
-int print_vnifilter_rtm(struct nlmsghdr *n, void *arg, bool monitor);
+int print_vnifilter_rtm(struct nlmsghdr *n, void *arg);
 void br_print_router_port_stats(struct rtattr *pattr);
 void print_headers(FILE *fp, const char *label);
 
index e321516a116d5ec79fc11c2dccd1e19563a5bf04..d82f45cc02d152e39a7fde5b65c2a6964b10c174 100644 (file)
@@ -63,7 +63,7 @@ static int accept_msg(struct rtnl_ctrl_data *ctrl,
 
        case RTM_NEWTUNNEL:
        case RTM_DELTUNNEL:
-               return print_vnifilter_rtm(n, arg, true);
+               return print_vnifilter_rtm(n, arg);
 
        default:
                return 0;
index e776797a6ad2d2e45ceb548350354d8b32202f03..940f251cc6f1f7d20203954111b6fe7201d104c2 100644 (file)
@@ -303,7 +303,7 @@ static void print_vni(struct rtattr *t, int ifindex)
        print_string(PRINT_FP, NULL, "%s", _SL_);
 }
 
-int print_vnifilter_rtm(struct nlmsghdr *n, void *arg, bool monitor)
+int print_vnifilter_rtm(struct nlmsghdr *n, void *arg)
 {
        struct tunnel_msg *tmsg = NLMSG_DATA(n);
        int len = n->nlmsg_len;
@@ -364,7 +364,7 @@ int print_vnifilter_rtm(struct nlmsghdr *n, void *arg, bool monitor)
 
 static int print_vnifilter_rtm_filter(struct nlmsghdr *n, void *arg)
 {
-       return print_vnifilter_rtm(n, arg, false);
+       return print_vnifilter_rtm(n, arg);
 }
 
 static int vni_show(int argc, char **argv)