From 62819462b7baf9cd6af84c7f238eaef058c466ed Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 15 Jan 2019 08:55:34 -0500 Subject: [PATCH] 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 --- zebra/rt_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) {