Skip to contentSkip to conversation

mincore: remove unneeded variable 'err'

PATCH New Daeseok Youn 1 participant 1 message Jan 30, 2015

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

PATCH 1/1 mincore: remove unneeded variable 'err'

mincore_hugetlb() returns always '0'

---
 mm/mincore.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
mm/mincore.c +1 -2
index 8d6db5c..be25efd 100644
@@ -22,7 +22,6 @@
 static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr,
 			unsigned long end, struct mm_walk *walk)
 {
-	int err = 0;
 #ifdef CONFIG_HUGETLB_PAGE
 	unsigned char present;
 	unsigned char *vec = walk->private;
@@ -38,7 +37,7 @@ static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr,
 #else
 	BUG();
 #endif
-	return err;
+	return 0;
 }
 
 /*
Signature · 7 lines
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>