The patch titled Subject: mincore: remove unneeded variable 'err' has been added to the -mm tree. Its filename is mincore-apply-page-table-walker-on-do_mincore-fix-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mincore-apply-page-table-walker-on-do_mincore-fix-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mincore-apply-page-table-walker-on-do_mincore-fix-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Daeseok Youn <daeseok.youn@xxxxxxxxx> Subject: mincore: remove unneeded variable 'err' mincore_hugetlb() returns always '0' Signed-off-by: Daeseok Youn <daeseok.youn@xxxxxxxxx> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mincore.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN mm/mincore.c~mincore-apply-page-table-walker-on-do_mincore-fix-fix mm/mincore.c --- a/mm/mincore.c~mincore-apply-page-table-walker-on-do_mincore-fix-fix +++ a/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, u #else BUG(); #endif - return err; + return 0; } /* _ Patches currently in -mm which might be from daeseok.youn@xxxxxxxxx are ocfs2-remove-unreachable-code.patch ocfs2-removes-mlog_errno-call-twice-in-ocfs2_find_dir_space_el.patch ocfs2-remove-unreachable-code-in-__ocfs2_recovery_thread.patch mincore-apply-page-table-walker-on-do_mincore-fix-fix.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html