Skip to content

Commit cdb07bd

Browse files
Colin Ian Kingtorvalds
authored andcommitted
mm/rmap.c: remove redundant variable cend
Variable cend is set but never read, hence it is redundant and can be removed. Cleans up clang build warning: Value stored to 'cend' is never read Link: http://lkml.kernel.org/r/20171011174942.1372-1-colin.king@canonical.com Fixes: 369ea82 ("mm/rmap: update to new mmu_notifier semantic v2") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f3f7c09 commit cdb07bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mm/rmap.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static bool page_mkclean_one(struct page *page, struct vm_area_struct *vma,
899899
mmu_notifier_invalidate_range_start(vma->vm_mm, start, end);
900900

901901
while (page_vma_mapped_walk(&pvmw)) {
902-
unsigned long cstart, cend;
902+
unsigned long cstart;
903903
int ret = 0;
904904

905905
cstart = address = pvmw.address;
@@ -915,7 +915,6 @@ static bool page_mkclean_one(struct page *page, struct vm_area_struct *vma,
915915
entry = pte_wrprotect(entry);
916916
entry = pte_mkclean(entry);
917917
set_pte_at(vma->vm_mm, address, pte, entry);
918-
cend = cstart + PAGE_SIZE;
919918
ret = 1;
920919
} else {
921920
#ifdef CONFIG_TRANSPARENT_HUGE_PAGECACHE
@@ -931,7 +930,6 @@ static bool page_mkclean_one(struct page *page, struct vm_area_struct *vma,
931930
entry = pmd_mkclean(entry);
932931
set_pmd_at(vma->vm_mm, address, pmd, entry);
933932
cstart &= PMD_MASK;
934-
cend = cstart + PMD_SIZE;
935933
ret = 1;
936934
#else
937935
/* unexpected pmd-mapped page? */

0 commit comments

Comments
 (0)