From 173a1077ef4d198c2ce1b30f611e5fe5875faa01 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 7 May 2014 09:19:06 +0000 Subject: [PATCH] netifd: Remove useless route table parameter check in update_proto_route Not necessary since route table parameter is used as key element in route_cmp Signed-off-by: Hans Dedecker --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-ip.c b/interface-ip.c index 8458666..a82d8e7 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -581,7 +581,7 @@ interface_update_proto_route(struct vlist_tree *tree, if (node_old && node_new) keep = !memcmp(&route_old->nexthop, &route_new->nexthop, sizeof(route_old->nexthop)) && - (route_old->table == route_new->table) && !route_old->failed; + !route_old->failed; if (node_old) { if (!(route_old->flags & DEVADDR_EXTERNAL) && route_old->enabled && !keep) -- 2.25.1