Skip to contentSkip to conversation

Minor: Removed double return.

PATCH In review Manish Ahuja 2 participants 3 messages Jul 6, 2007 – Jul 7, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

Found 2 instances of return one right after each other in arch_add_memory(). This minor patch fixes it.

arch/powerpc/mm/mem.c +0 -2
Index: 2.6.22-rc4/arch/powerpc/mm/mem.c
===================================================================
@@ -129,8 +129,6 @@
 	zone = pgdata->node_zones;
 
 	return __add_pages(zone, start_pfn, nr_pages);
-
-	return 0;
 }
 
 /*
#1 lore raw

PATCH 1/1 pseries: Re: Minor: Removed double return.

You want to say its a patch in the subject line.

--linas

Quoted 19 lines · Manish Ahuja

Found 2 instances of return one right after each other in arch_add_memory(). This minor patch fixes it.

Index: 2.6.22-rc4/arch/powerpc/mm/mem.c
===================================================================

arch/powerpc/mm/mem.c +0 -2
@@ -129,8 +129,6 @@
 	zone = pgdata->node_zones;
 
 	return __add_pages(zone, start_pfn, nr_pages);
-
-	return 0;
 }
 
 /*
#2 lore raw

Re: [PATCH] pseries: Re: Minor: Removed double return.

Ah yes, my mistake. Does it require a repost then ?

Thanks,
Manish

Quoted 29 lines · Linas Vepstas

You want to say its a patch in the subject line.

--linas

Quoted 21 lines · Manish Ahuja

Found 2 instances of return one right after each other in arch_add_memory(). This minor patch fixes it.

Index: 2.6.22-rc4/arch/powerpc/mm/mem.c
===================================================================

arch/powerpc/mm/mem.c +0 -2
@@ -129,8 +129,6 @@
 	zone = pgdata->node_zones;
 
 	return __add_pages(zone, start_pfn, nr_pages);
-
-	return 0;
 }
 
 /*