From 140d2d7ff5db4a83ff4b8ed1e95d3d48368b9603 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 6 Mar 2019 10:53:49 -0500 Subject: [PATCH] zebra: Remove unused sockaddr variable This variable does nothing, removing it. Signed-off-by: Stephen Worley --- zebra/rt_netlink.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 18cf389d5e..9cea1d3c79 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -1438,7 +1438,6 @@ static int netlink_neigh_update(int cmd, int ifindex, uint32_t addr, char *lla, static int netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx) { int bytelen; - struct sockaddr_nl snl; struct nexthop *nexthop = NULL; unsigned int nexthop_num; int family; @@ -1747,11 +1746,6 @@ static int netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx) } skip: - - /* Destination netlink address. */ - memset(&snl, 0, sizeof(snl)); - snl.nl_family = AF_NETLINK; - /* Talk to netlink socket. */ return netlink_talk_info(netlink_talk_filter, &req.n, dplane_ctx_get_ns(ctx), 0); -- 2.39.5