mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue