mm: vmalloc: remove redundant assignment in unmap_kernel_range_noflush()
authorMike Rapoport <rppt@linux.ibm.com>
Fri, 7 Aug 2020 06:24:21 +0000 (23:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Aug 2020 18:33:27 +0000 (11:33 -0700)
'addr' is set to 'start' and then a few lines afterwards 'start' is set to
'addr'.  Remove the second asignment.

Fixes: 2ba3e6947aed ("mm/vmalloc: track which page-table levels were modified")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Joerg Roedel <jroedel@suse.de>
Link: http://lkml.kernel.org/r/20200707163226.374685-1-rppt@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c

index 970cbc453bcdade86427f7f5645fab2c102551b4..3d7b94eb0ac0a388acbc61436ef91adde3ac6049 100644 (file)
@@ -175,7 +175,6 @@ void unmap_kernel_range_noflush(unsigned long start, unsigned long size)
        pgtbl_mod_mask mask = 0;
 
        BUG_ON(addr >= end);
-       start = addr;
        pgd = pgd_offset_k(addr);
        do {
                next = pgd_addr_end(addr, end);