[PATCH] NFSv4: fs/nfs/nfs4proc.c: small simplification
The Coverity checker noticed that such a simplification was possible. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
213484254c
commit
b7ef19560f
|
@ -123,7 +123,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry,
|
|||
|
||||
BUG_ON(readdir->count < 80);
|
||||
if (cookie > 2) {
|
||||
readdir->cookie = (cookie > 2) ? cookie : 0;
|
||||
readdir->cookie = cookie;
|
||||
memcpy(&readdir->verifier, verifier, sizeof(readdir->verifier));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue