From: Hans Dedecker Date: Wed, 7 May 2014 09:19:06 +0000 (+0000) Subject: netifd: Remove useless route table parameter check in update_proto_route X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=173a1077ef4d198c2ce1b30f611e5fe5875faa01;p=oweals%2Fnetifd.git 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 --- 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)