Skip to content

Commit 60df43d

Browse files
ThinkerYzu1davem330
authored andcommitted
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>
1 parent 129e406 commit 60df43d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv6/route.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,8 +3765,6 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg,
37653765
if (cfg->fc_flags & RTF_EXPIRES)
37663766
fib6_set_expires(rt, jiffies +
37673767
clock_t_to_jiffies(cfg->fc_expires));
3768-
else
3769-
fib6_clean_expires(rt);
37703768

37713769
if (cfg->fc_protocol == RTPROT_UNSPEC)
37723770
cfg->fc_protocol = RTPROT_BOOT;

0 commit comments

Comments
 (0)