aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2015-07-13 14:01:28 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-17 13:29:51 -0500
commitd8efa4e62505f5113e363572b5438b7be0d08b12 (patch)
treeb5d6ce8aa44591dcef853a2ff51fa6788f7939f9 /fs/nfs/nfs4client.c
parentSUNRPC: Add an rpc_cmp_addr_port() function (diff)
downloadlinux-dev-d8efa4e62505f5113e363572b5438b7be0d08b12.tar.xz
linux-dev-d8efa4e62505f5113e363572b5438b7be0d08b12.zip
NFS: Use RPC functions for matching sockaddrs
They already exist and do the exact same thing. Let's save ourselves several lines of code! Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 3aa6a9ba5113..223bedda64ae 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -729,10 +729,7 @@ static bool nfs4_cb_match_client(const struct sockaddr *addr,
return false;
/* Match only the IP address, not the port number */
- if (!nfs_sockaddr_match_ipaddr(addr, clap))
- return false;
-
- return true;
+ return rpc_cmp_addr(addr, clap);
}
/*