mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
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>
This commit is contained in:
parent
129e406e18
commit
60df43d3a7
@ -3765,8 +3765,6 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg,
|
|||||||
if (cfg->fc_flags & RTF_EXPIRES)
|
if (cfg->fc_flags & RTF_EXPIRES)
|
||||||
fib6_set_expires(rt, jiffies +
|
fib6_set_expires(rt, jiffies +
|
||||||
clock_t_to_jiffies(cfg->fc_expires));
|
clock_t_to_jiffies(cfg->fc_expires));
|
||||||
else
|
|
||||||
fib6_clean_expires(rt);
|
|
||||||
|
|
||||||
if (cfg->fc_protocol == RTPROT_UNSPEC)
|
if (cfg->fc_protocol == RTPROT_UNSPEC)
|
||||||
cfg->fc_protocol = RTPROT_BOOT;
|
cfg->fc_protocol = RTPROT_BOOT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user