From: Benjamin Poirier Date: Mon, 11 Dec 2023 14:07:20 +0000 (-0500) Subject: bridge: vni: Remove print_vnifilter_rtm_filter() X-Git-Tag: v6.7.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=060eac10e764c46064aafaaed7d2808ea52858eb;p=thirdparty%2Fiproute2.git 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 Tested-by: Petr Machata Signed-off-by: Benjamin Poirier Acked-by: Stephen Hemminger Signed-off-by: Stephen Hemminger --- 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);