diff options
| author | Jiri Bohac <jbohac@suse.cz> | 2012-04-15 23:35:41 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-04-17 22:31:59 -0400 |
| commit | cda31e10baf47a8a7d9360d9488fb76294be1ca3 (patch) | |
| tree | 7bc647cff2900f21a493718754b5261d96562564 /include | |
| parent | edfb5d4687d587c9f714799c7ee27517118e12e6 (diff) | |
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: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/ip6_fib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index cb8da1dac512..0ae759a6c76e 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
| @@ -129,7 +129,7 @@ static inline void rt6_clean_expires(struct rt6_info *rt) | |||
| 129 | dst_release(rt->dst.from); | 129 | dst_release(rt->dst.from); |
| 130 | 130 | ||
| 131 | rt->rt6i_flags &= ~RTF_EXPIRES; | 131 | rt->rt6i_flags &= ~RTF_EXPIRES; |
| 132 | rt->dst.expires = 0; | 132 | rt->dst.from = NULL; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires) | 135 | static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires) |
