aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-10-05 12:49:35 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-19 10:48:16 -0400
commit50fa0d40a9d601bb8e6c9a595e90940bc846f7df (patch)
tree70cff33f36dd95e1b1de74fa09d32fcec9e3b2ae /net/sunrpc/xprtsock.c
parentc636b572e00e38855dc7a56a0fa438dd835f39de (diff)
sunrpc: Remove dead "else" branch from bc xprt creation
Since the xprt in question is forcibly set to be bound the else branch of this check is unneeded. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index bc5786146eee..79155650b7b9 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -2366,15 +2366,10 @@ static struct rpc_xprt *xs_setup_bc_tcp(struct xprt_create *args)
2366 goto out_err; 2366 goto out_err;
2367 } 2367 }
2368 2368
2369 if (xprt_bound(xprt)) 2369 dprintk("RPC: set up xprt to %s (port %s) via %s\n",
2370 dprintk("RPC: set up xprt to %s (port %s) via %s\n", 2370 xprt->address_strings[RPC_DISPLAY_ADDR],
2371 xprt->address_strings[RPC_DISPLAY_ADDR], 2371 xprt->address_strings[RPC_DISPLAY_PORT],
2372 xprt->address_strings[RPC_DISPLAY_PORT], 2372 xprt->address_strings[RPC_DISPLAY_PROTO]);
2373 xprt->address_strings[RPC_DISPLAY_PROTO]);
2374 else
2375 dprintk("RPC: set up xprt to %s (autobind) via %s\n",
2376 xprt->address_strings[RPC_DISPLAY_ADDR],
2377 xprt->address_strings[RPC_DISPLAY_PROTO]);
2378 2373
2379 /* 2374 /*
2380 * Since we don't want connections for the backchannel, we set 2375 * Since we don't want connections for the backchannel, we set