projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2134842
)
[PATCH] NFSv4: fs/nfs/nfs4proc.c: small simplification
author
Adrian Bunk
<bunk@stusta.de>
Wed, 22 Jun 2005 17:16:28 +0000
(17:16 +0000)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 20:07:27 +0000
(16:07 -0400)
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>
fs/nfs/nfs4proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 128d01cfea1914482701ba111669bfa029f1d007..7ff23707256ae3a6460bdce7b977c1e5830bb63d 100644
(file)
--- 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,
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;
}