diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2015-07-13 21:01:28 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-17 21:29:51 +0300 |
commit | d8efa4e62505f5113e363572b5438b7be0d08b12 (patch) | |
tree | b5d6ce8aa44591dcef853a2ff51fa6788f7939f9 /fs/nfs/nfs4client.c | |
parent | 58cc8a55aa38655d472a4c381df465c9ab97b4d6 (diff) | |
download | linux-d8efa4e62505f5113e363572b5438b7be0d08b12.tar.xz |
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.c | 5 |
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); } /* |