mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
ipvs: remove unnecessary assignment in __ip_vs_get_out_rt
It is a precondition of the function that daddr be equal to dest->addr.ip if dest is non-NULL, so this additional assignment is just confusing for stupid engineers like me. Signed-off-by: Alex Gartrell <agartrell@fb.com> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
61ed53deb1
commit
d770108911
@ -293,7 +293,6 @@ __ip_vs_get_out_rt(int skb_af, struct sk_buff *skb, struct ip_vs_dest *dest,
|
||||
&dest->addr.ip, &dest_dst->dst_saddr.ip,
|
||||
atomic_read(&rt->dst.__refcnt));
|
||||
}
|
||||
daddr = dest->addr.ip;
|
||||
if (ret_saddr)
|
||||
*ret_saddr = dest_dst->dst_saddr.ip;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user