Skip to contentSkip to conversation

Remove an unused variable from get_unmapped_area()

PATCH David Gibson 2 participants 2 messages May 9, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Some recent changes in get_unmapped_area() have left the 'ret' local unused. This patch removes it.

mm/mmap.c +0 -1
Index: working-2.6/mm/mmap.c
===================================================================
@@ -1366,7 +1366,6 @@ unsigned long
 get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
 		unsigned long pgoff, unsigned long flags)
 {
-	unsigned long ret;
 	unsigned long (*get_area)(struct file *, unsigned long,
 				  unsigned long, unsigned long, unsigned long);
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson