Commit b7ef1956 authored by Adrian Bunk's avatar Adrian Bunk Committed by Trond Myklebust

[PATCH] NFSv4: fs/nfs/nfs4proc.c: small simplification

 The Coverity checker noticed that such a simplification was possible.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 21348425
...@@ -123,7 +123,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, ...@@ -123,7 +123,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry,
BUG_ON(readdir->count < 80); BUG_ON(readdir->count < 80);
if (cookie > 2) { if (cookie > 2) {
readdir->cookie = (cookie > 2) ? cookie : 0; readdir->cookie = cookie;
memcpy(&readdir->verifier, verifier, sizeof(readdir->verifier)); memcpy(&readdir->verifier, verifier, sizeof(readdir->verifier));
return; return;
} }
......
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