diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-22 13:16:28 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-06-22 16:07:27 -0400 |
commit | b7ef19560f496fd3942e41e728950e5b5c9a461b (patch) | |
tree | d644bb8aaff3e9611dd0fbad1db4315f78f36a71 /fs | |
parent | 213484254c65e3c39c59df454132748b1367f816 (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 128d01cfea19..7ff23707256a 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -123,7 +123,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | |||
123 | 123 | ||
124 | BUG_ON(readdir->count < 80); | 124 | BUG_ON(readdir->count < 80); |
125 | if (cookie > 2) { | 125 | if (cookie > 2) { |
126 | readdir->cookie = (cookie > 2) ? cookie : 0; | 126 | readdir->cookie = cookie; |
127 | memcpy(&readdir->verifier, verifier, sizeof(readdir->verifier)); | 127 | memcpy(&readdir->verifier, verifier, sizeof(readdir->verifier)); |
128 | return; | 128 | return; |
129 | } | 129 | } |