aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-02 17:31:35 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-02 17:31:35 -0500
commitb23dd4fe42b455af5c6e20966b7d6959fa8352ea (patch)
treebf97323eae9a8d084170e573ff2c0c40bc72c3cd /net/rxrpc
parent452edd598f60522c11f7f88fdbab27eb36509d1a (diff)
ipv4: Make output route lookup return rtable directly.
Instead of on the stack. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/ar-peer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/rxrpc/ar-peer.c b/net/rxrpc/ar-peer.c
index a53fb25a64ed..3620c569275f 100644
--- a/net/rxrpc/ar-peer.c
+++ b/net/rxrpc/ar-peer.c
@@ -37,7 +37,6 @@ static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer)
37{ 37{
38 struct rtable *rt; 38 struct rtable *rt;
39 struct flowi fl; 39 struct flowi fl;
40 int ret;
41 40
42 peer->if_mtu = 1500; 41 peer->if_mtu = 1500;
43 42
@@ -58,9 +57,9 @@ static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer)
58 BUG(); 57 BUG();
59 } 58 }
60 59
61 ret = ip_route_output_key(&init_net, &rt, &fl); 60 rt = ip_route_output_key(&init_net, &fl);
62 if (ret < 0) { 61 if (IS_ERR(rt)) {
63 _leave(" [route err %d]", ret); 62 _leave(" [route err %ld]", PTR_ERR(rt));
64 return; 63 return;
65 } 64 }
66 65