mm/hmm.c: remove unused variables align_start and align_end
authorColin Ian King <[email protected]>
Fri, 17 Aug 2018 22:50:07 +0000 (15:50 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Aug 2018 23:20:33 +0000 (16:20 -0700)
Variables align_start and align_end are being assigned but are never
used hence they are redundant and can be removed.

Cleans up clang warnings:
  warning: variable 'align_start' set but not used [-Wunused-but-set-variable]
  warning: variable 'align_size' set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/hmm.c

index caf9df27599e79f7d21fea0615a4d7a754e7081c..76e7a058b32fc2c4dfb675d262dde082dced208d 100644 (file)
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -973,10 +973,7 @@ static RADIX_TREE(hmm_devmem_radix, GFP_KERNEL);
 
 static void hmm_devmem_radix_release(struct resource *resource)
 {
-       resource_size_t key, align_start, align_size;
-
-       align_start = resource->start & ~(PA_SECTION_SIZE - 1);
-       align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE);
+       resource_size_t key;
 
        mutex_lock(&hmm_devmem_lock);
        for (key = resource->start;