diff options
author | Kui-Feng Lee <thinker.li@gmail.com> | 2024-02-08 14:06:50 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-12 10:24:12 +0000 |
commit | 60df43d3a72c5fc50ff854cca17c9935c4398794 (patch) | |
tree | 24572179f1382bd5ea241125975e7611ae418dd9 /net/ipv6/route.c | |
parent | 129e406e1811538c1afc9c8e97d61bb18eed3363 (diff) | |
download | linux-stable-60df43d3a72c5fc50ff854cca17c9935c4398794.tar.gz linux-stable-60df43d3a72c5fc50ff854cca17c9935c4398794.tar.bz2 linux-stable-60df43d3a72c5fc50ff854cca17c9935c4398794.zip |
net/ipv6: Remove unnecessary clean.
The route here is newly created. It is unnecessary to call
fib6_clean_expires() on it.
Suggested-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 98abba8f15cd..dd6ff5b20918 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3765,8 +3765,6 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg, if (cfg->fc_flags & RTF_EXPIRES) fib6_set_expires(rt, jiffies + clock_t_to_jiffies(cfg->fc_expires)); - else - fib6_clean_expires(rt); if (cfg->fc_protocol == RTPROT_UNSPEC) cfg->fc_protocol = RTPROT_BOOT; |