diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-03-06 16:53:49 +0100 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-03-06 16:53:49 +0100 |
commit | 140d2d7ff5db4a83ff4b8ed1e95d3d48368b9603 (patch) | |
tree | 244839d769ea2c188d55e99122345de90be0202d /zebra | |
parent | Merge pull request #3855 from donaldsharp/bgp_clist_sa (diff) | |
download | frr-140d2d7ff5db4a83ff4b8ed1e95d3d48368b9603.tar.xz frr-140d2d7ff5db4a83ff4b8ed1e95d3d48368b9603.zip |
zebra: Remove unused sockaddr variable
This variable does nothing, removing it.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/rt_netlink.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 18cf389d5..9cea1d3c7 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); |