Commit 8da0f934 authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust

NFS: Clean up nfs4_check_server_scope()

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent ddfa0d48
...@@ -624,18 +624,9 @@ nfs4_check_server_scope(struct nfs41_server_scope *s1, ...@@ -624,18 +624,9 @@ nfs4_check_server_scope(struct nfs41_server_scope *s1,
struct nfs41_server_scope *s2) struct nfs41_server_scope *s2)
{ {
if (s1->server_scope_sz != s2->server_scope_sz) if (s1->server_scope_sz != s2->server_scope_sz)
goto out_scope_mismatch; return false;
if (memcmp(s1->server_scope, s2->server_scope, return memcmp(s1->server_scope, s2->server_scope,
s1->server_scope_sz) != 0) s1->server_scope_sz) == 0;
goto out_scope_mismatch;
dprintk("NFS: --> %s server scopes match\n", __func__);
return true;
out_scope_mismatch:
dprintk("NFS: --> %s server scopes do not match\n",
__func__);
return false;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment