From: Adrian Bunk Date: Wed, 22 Jun 2005 17:16:28 +0000 (+0000) Subject: [PATCH] NFSv4: fs/nfs/nfs4proc.c: small simplification X-Git-Tag: v2.6.13-rc4~130^2~157^2~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b7ef19560f496fd3942e41e728950e5b5c9a461b;p=linux-2.6-omap-h63xx.git [PATCH] NFSv4: fs/nfs/nfs4proc.c: small simplification The Coverity checker noticed that such a simplification was possible. Signed-off-by: Adrian Bunk Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 128d01cfea1..7ff23707256 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, 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; }