summaryrefslogtreecommitdiff
path: root/net/sunrpc
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2011-10-25 14:17:38 +0300
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-25 13:20:35 +0200
commit0f0c01da444fbfd63556f301dde15915fd6cbb20 (patch)
treec083fc52e82586ef0d2639a0fa97b05c815fa8d4 /net/sunrpc
parent16d0587090ab93206768f726f71d84ecf55e05c4 (diff)
downloadlinux-3.10-0f0c01da444fbfd63556f301dde15915fd6cbb20.tar.gz
linux-3.10-0f0c01da444fbfd63556f301dde15915fd6cbb20.tar.bz2
linux-3.10-0f0c01da444fbfd63556f301dde15915fd6cbb20.zip
SUNRPC: remove rpcbind clients creation during service registering
We don't need this code since rpcbind clients are creating during RPC service creation. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpcb_clnt.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index c24626537a7..e913039133a 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -431,11 +431,6 @@ int rpcb_register(u32 prog, u32 vers, int prot, unsigned short port)
struct rpc_message msg = {
.rpc_argp = &map,
};
- int error;
-
- error = rpcb_create_local();
- if (error)
- return error;
dprintk("RPC: %sregistering (%u, %u, %d, %u) with local "
"rpcbind\n", (port ? "" : "un"),
@@ -571,11 +566,7 @@ int rpcb_v4_register(const u32 program, const u32 version,
struct rpc_message msg = {
.rpc_argp = &map,
};
- int error;
- error = rpcb_create_local();
- if (error)
- return error;
if (rpcb_local_clnt4 == NULL)
return -EPROTONOSUPPORT;