Skip to contentSkip to conversation

IA64: Remove duplicate range check in call_pernode_memory()

PATCH In review Simon Horman 1 participant 1 message May 10, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 IA64: Remove duplicate range check in call_pernode_memory()

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

From: Simon Horman <[email protected]>

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;
}

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