diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-29 02:13:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-29 02:13:17 -0400 |
commit | 6706b6ebab85dfca4e2886e35ec9c3c4ee13e27e (patch) | |
tree | a4b23e05b18508421a15834e3da773ce1d1b28c3 /include/net/route.h | |
parent | 813b3b5db831ddbd92b5ce0fdeb74e3368f1323c (diff) |
ipv4: Remove now superfluous code in ip_route_connect().
Now that output route lookups update the flow with
source address et al. selections, the fl4->{saddr,daddr}
assignments here are no longer necessary.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 81b6cf276549..16eb59cd7080 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -271,8 +271,6 @@ static inline struct rtable *ip_route_connect(struct flowi4 *fl4, | |||
271 | rt = __ip_route_output_key(net, fl4); | 271 | rt = __ip_route_output_key(net, fl4); |
272 | if (IS_ERR(rt)) | 272 | if (IS_ERR(rt)) |
273 | return rt; | 273 | return rt; |
274 | fl4->daddr = rt->rt_dst; | ||
275 | fl4->saddr = rt->rt_src; | ||
276 | ip_rt_put(rt); | 274 | ip_rt_put(rt); |
277 | } | 275 | } |
278 | security_sk_classify_flow(sk, flowi4_to_flowi(fl4)); | 276 | security_sk_classify_flow(sk, flowi4_to_flowi(fl4)); |