mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
NFS: Clean up nfs41_same_server_scope()
The function is cleaner this way, since we can use the result of memcmp() directly Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
81b68de493
commit
49ad0145c3
1 changed files with 3 additions and 5 deletions
|
@ -7120,11 +7120,9 @@ static bool
|
|||
nfs41_same_server_scope(struct nfs41_server_scope *a,
|
||||
struct nfs41_server_scope *b)
|
||||
{
|
||||
if (a->server_scope_sz == b->server_scope_sz &&
|
||||
memcmp(a->server_scope, b->server_scope, a->server_scope_sz) == 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
if (a->server_scope_sz != b->server_scope_sz)
|
||||
return false;
|
||||
return memcmp(a->server_scope, b->server_scope, a->server_scope_sz) == 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue