diff options
author | Benjamin Poirier <bpoirier@nvidia.com> | 2023-12-11 09:07:20 -0500 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2023-12-22 09:54:23 -0800 |
commit | 060eac10e764c46064aafaaed7d2808ea52858eb (patch) | |
tree | cce4a77ef7176b66caafc3a67a0dee2748b3c91c | |
parent | 0b8508f44d8554cf80ef92a745c8be813b99fccb (diff) | |
download | iproute2-060eac10e764c46064aafaaed7d2808ea52858eb.tar.gz |
bridge: vni: Remove print_vnifilter_rtm_filter()
print_vnifilter_rtm_filter() adds an unnecessary level of indirection so
remove it to simplify the code.
Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | bridge/vni.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bridge/vni.c b/bridge/vni.c index 746681561..51e65b898 100644 --- a/bridge/vni.c +++ b/bridge/vni.c @@ -350,11 +350,6 @@ int print_vnifilter_rtm(struct nlmsghdr *n, void *arg) return 0; } -static int print_vnifilter_rtm_filter(struct nlmsghdr *n, void *arg) -{ - return print_vnifilter_rtm(n, arg); -} - static int vni_show(int argc, char **argv) { char *filter_dev = NULL; @@ -395,7 +390,7 @@ static int vni_show(int argc, char **argv) printf("\n"); } - ret = rtnl_dump_filter(&rth, print_vnifilter_rtm_filter, NULL); + ret = rtnl_dump_filter(&rth, print_vnifilter_rtm, NULL); if (ret < 0) { fprintf(stderr, "Dump ternminated\n"); exit(1); |