linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mincore: remove unneeded variable 'err'
@ 2015-01-30 10:53 Daeseok Youn
  0 siblings, 0 replies; only message in thread
From: Daeseok Youn @ 2015-01-30 10:53 UTC (permalink / raw)
  To: akpm
  Cc: hannes, n-horiguchi, riel, minchan, daeseok.youn,
	kirill.shutemov, weijie.yang, linux-mm, linux-kernel

mincore_hugetlb() returns always '0'

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
 mm/mincore.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/mm/mincore.c b/mm/mincore.c
index 8d6db5c..be25efd 100644
--- a/mm/mincore.c
+++ b/mm/mincore.c
@@ -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;
 }
 
 /*
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-30 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30 10:53 [PATCH] mincore: remove unneeded variable 'err' Daeseok Youn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).