Skip to content

Commit

Permalink
ipv6: clean up rt6_clean_expires
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Bohac authored and David S. Miller committed Apr 18, 2012
1 parent edfb5d4 commit cda31e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static inline void rt6_clean_expires(struct rt6_info *rt)
dst_release(rt->dst.from);

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)
Expand Down

0 comments on commit cda31e1

Please sign in to comment.