diff --git a/mm/mmap.c b/mm/mmap.c
index 52646d61ff696235e88b11175641bf7de884afd3..cc1f543eb1b85e1ddfce5927704f9763f3d74233 100644
--- a/mm/mmap.c
+++ b/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);