mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] random whitespace doh
@ 2005-01-13  6:38 Matt Mackall
  0 siblings, 0 replies; only message in thread
From: Matt Mackall @ 2005-01-13  6:38 UTC (permalink / raw)
  To: Andrew Morton, Theodore Y. Ts'o, linux-kernel

Someone actually spotted this already.

Signed-off-by: Matt Mackall <mpm@selenic.com>

Index: rnd/drivers/char/random.c
===================================================================
--- rnd.orig/drivers/char/random.c	2005-01-12 09:49:48.299725239 -0800
+++ rnd/drivers/char/random.c	2005-01-12 09:50:47.005240922 -0800
@@ -2368,7 +2368,7 @@
 	cookie -= tmp[17] + sseq;
 	/* Cookie is now reduced to (count * 2^24) ^ (hash % 2^24) */
 
-	diff = (count - (cookie >> COOKIEBITS)) & ((__u32) - 1 >> COOKIEBITS);
+	diff = (count - (cookie >> COOKIEBITS)) & ((__u32)-1 >> COOKIEBITS);
 	if (diff >= maxdiff)
 		return (__u32)-1;
 

-- 
Mathematics is the supreme nostalgia of our time.

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

only message in thread, other threads:[~2005-01-13  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13  6:38 [PATCH 1/3] random whitespace doh Matt Mackall

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

Powered by JetHome