public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] fs/nfs/nfs4proc.c: small simplification
@ 2005-03-23 23:37 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-03-23 23:37 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-kernel

The Coverity checker noticed that such a simplification was possible.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.12-rc1-mm1-full/fs/nfs/nfs4proc.c.old	2005-03-23 00:56:05.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/fs/nfs/nfs4proc.c	2005-03-23 00:56:29.000000000 +0100
@@ -124,7 +124,7 @@
 
 	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;
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-23 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-23 23:37 [2.6 patch] fs/nfs/nfs4proc.c: small simplification Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox