From: Daeseok Youn <daeseok.youn@gmail.com>
To: akpm@linux-foundation.org
Cc: hannes@cmpxchg.org, n-horiguchi@ah.jp.nec.com, riel@redhat.com,
minchan@kernel.org, daeseok.youn@gmail.com,
kirill.shutemov@linux.intel.com, weijie.yang@samsung.com,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH] mincore: remove unneeded variable 'err'
Date: Fri, 30 Jan 2015 19:53:02 +0900 [thread overview]
Message-ID: <20150130105302.GA24970@devel.8.8.4.4> (raw)
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2015-01-30 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150130105302.GA24970@devel.8.8.4.4 \
--to=daeseok.youn@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=riel@redhat.com \
--cc=weijie.yang@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox