public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] Hardly triggered tests in bootmem.c ...
@ 2003-07-02 22:07 Davide Libenzi
  2003-07-03 14:46 ` Michael Buesch
  0 siblings, 1 reply; 2+ messages in thread
From: Davide Libenzi @ 2003-07-02 22:07 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton


I was looking at the bootmem.c source and I found those hardly triggered
tests (unsigned long's).
(Andrew, sending the patch insted of the note)


- Davide




--- linux-2.5.73/mm/bootmem.c.orig	2003-07-02 14:55:47.000000000 -0700
+++ linux-2.5.73/mm/bootmem.c	2003-07-02 14:56:51.000000000 -0700
@@ -84,10 +84,6 @@

 	if (!size) BUG();

-	if (sidx < 0)
-		BUG();
-	if (eidx < 0)
-		BUG();
 	if (sidx >= eidx)
 		BUG();
 	if ((addr >> PAGE_SHIFT) >= bdata->node_low_pfn)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-03 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-02 22:07 [patch] Hardly triggered tests in bootmem.c Davide Libenzi
2003-07-03 14:46 ` Michael Buesch

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