[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231211140732.11475-9-bpoirier@nvidia.com>
Date: Mon, 11 Dec 2023 09:07:20 -0500
From: Benjamin Poirier <bpoirier@...dia.com>
To: netdev@...r.kernel.org
Cc: Petr Machata <petrm@...dia.com>,
Roopa Prabhu <roopa@...dia.com>
Subject: [PATCH iproute2-next 08/20] 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@...dia.com>
Tested-by: Petr Machata <petrm@...dia.com>
Signed-off-by: Benjamin Poirier <bpoirier@...dia.com>
---
bridge/vni.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/bridge/vni.c b/bridge/vni.c
index 74668156..51e65b89 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);
--
2.43.0
Powered by blists - more mailing lists