aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-09 10:04:56 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-09 10:04:56 +0000
commit351e4592f64b5c752e7967f5ed565c546a5ef9ac (patch)
tree775aa6d76ca42d3329a38622593f4c57d258c46c
parent0d4038e3012b86c4f1ce5c2f25736993a1c9ac38 (diff)
downloadsrc-351e4592f64b5c752e7967f5ed565c546a5ef9ac.tar.gz
src-351e4592f64b5c752e7967f5ed565c546a5ef9ac.zip
route: remove always-true expression
-rw-r--r--sbin/route/route_netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c
index a9f550ef6f43..e3305c0d7df1 100644
--- a/sbin/route/route_netlink.c
+++ b/sbin/route/route_netlink.c
@@ -781,8 +781,7 @@ print_flushed_route(struct snl_parsed_route *r, struct sockaddr *gw)
routename(sa) : netname(sa));
sa = gw;
printf("%-20.20s ", routename(sa));
- if (r->rta_table >= 0)
- printf("-fib %-3d ", r->rta_table);
+ printf("-fib %-3d ", r->rta_table);
printf("done\n");
}