diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-15 08:55:34 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-15 08:55:34 -0500 |
| commit | 62819462b7baf9cd6af84c7f238eaef058c466ed (patch) | |
| tree | 8f102a27ff3243cfa2dfd7ea0b2805b31746f80b /zebra/rt_netlink.c | |
| parent | d8e331eb0e66991b9c280c6f004eb2f8da4c2e28 (diff) | |
zebra: Cleanup unnecessary check
We self include the enum that has the RTA_EXPIRES in it,
as such this will always be true.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_netlink.c')
| -rw-r--r-- | zebra/rt_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 8ce963b37b..ae4bc52727 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -773,7 +773,7 @@ static int netlink_route_change_read_multicast(struct nlmsghdr *h, if (tb[RTA_DST]) m->sg.grp = *(struct in_addr *)RTA_DATA(tb[RTA_DST]); - if ((RTA_EXPIRES <= RTA_MAX) && tb[RTA_EXPIRES]) + if (tb[RTA_EXPIRES]) m->lastused = *(unsigned long long *)RTA_DATA(tb[RTA_EXPIRES]); if (tb[RTA_MULTIPATH]) { |
