[request-for-test] [patch 1/3] IA64: Remove duplicate range check in call_pernode_memory()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Start is already verified to be less than end a few lines earlier.

From: Simon Horman <horms@xxxxxxxxxxxx>

Index: linux-2.6/arch/ia64/mm/discontig.c
===================================================================
--- linux-2.6.orig/arch/ia64/mm/discontig.c	2007-05-10 17:23:34.000000000 +0900
+++ linux-2.6/arch/ia64/mm/discontig.c	2007-05-10 17:23:53.000000000 +0900
@@ -593,8 +593,7 @@ void call_pernode_memory(unsigned long s
 
 	if (!num_node_memblks) {
 		/* No SRAT table, so assume one node (node 0) */
-		if (start < end)
-			(*func)(start, end - start, 0);
+		(*func)(start, end - start, 0);
 		return;
 	}
 

-- 

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux