mm/hmm: remove redundant variable align_end
[sfrench/cifs-2.6.git] / mm / hmm.c
index a88a847bccba700a1c0f51d0a819dcf365995ed1..ea19742a5d60b1a6270629a024d88a13b9c5f3c1 100644 (file)
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -803,11 +803,10 @@ static RADIX_TREE(hmm_devmem_radix, GFP_KERNEL);
 
 static void hmm_devmem_radix_release(struct resource *resource)
 {
 
 static void hmm_devmem_radix_release(struct resource *resource)
 {
-       resource_size_t key, align_start, align_size, align_end;
+       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);
 
        align_start = resource->start & ~(PA_SECTION_SIZE - 1);
        align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE);
-       align_end = align_start + align_size - 1;
 
        mutex_lock(&hmm_devmem_lock);
        for (key = resource->start;
 
        mutex_lock(&hmm_devmem_lock);
        for (key = resource->start;