Skip to content

Commit 6d3c8ce

Browse files
Colin Ian KingBoris Ostrovsky
authored andcommitted
x86/xen: remove redundant variable save_pud
Variable save_pud is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: variable 'save_pud' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
1 parent 076e2ce commit 6d3c8ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/xen/mmu_pv.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,6 @@ void __init xen_relocate_p2m(void)
20592059
pud_t *pud;
20602060
pgd_t *pgd;
20612061
unsigned long *new_p2m;
2062-
int save_pud;
20632062

20642063
size = PAGE_ALIGN(xen_start_info->nr_pages * sizeof(unsigned long));
20652064
n_pte = roundup(size, PAGE_SIZE) >> PAGE_SHIFT;
@@ -2089,7 +2088,6 @@ void __init xen_relocate_p2m(void)
20892088

20902089
pgd = __va(read_cr3_pa());
20912090
new_p2m = (unsigned long *)(2 * PGDIR_SIZE);
2092-
save_pud = n_pud;
20932091
for (idx_pud = 0; idx_pud < n_pud; idx_pud++) {
20942092
pud = early_memremap(pud_phys, PAGE_SIZE);
20952093
clear_page(pud);

0 commit comments

Comments
 (0)