lkml.org 
[lkml]   [2015]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mincore: remove unneeded variable 'err'
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


\
 
 \ /
  Last update: 2015-01-30 12:01    [W:0.036 / U:26.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site