提交 cda31e10 编写于 作者: J Jiri Bohac 提交者: David S. Miller

ipv6: clean up rt6_clean_expires

Functionally, this change is a NOP.

Semantically, rt6_clean_expires() wants to do rt->dst.from = NULL instead of
rt->dst.expires = 0. It is clearing the RTF_EXPIRES flag, so the union is going
to be treated as a pointer (dst.from) not a long (dst.expires).
Signed-off-by: NJiri Bohac <jbohac@suse.cz>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 edfb5d46
...@@ -129,7 +129,7 @@ static inline void rt6_clean_expires(struct rt6_info *rt) ...@@ -129,7 +129,7 @@ static inline void rt6_clean_expires(struct rt6_info *rt)
dst_release(rt->dst.from); dst_release(rt->dst.from);
rt->rt6i_flags &= ~RTF_EXPIRES; rt->rt6i_flags &= ~RTF_EXPIRES;
rt->dst.expires = 0; rt->dst.from = NULL;
} }
static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires) static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册