]> Pileus Git - ~andy/linux/blobdiff - arch/x86/mm/pgtable.c
Merge tag 'driver-core-3.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / arch / x86 / mm / pgtable.c
index 17fda6a8b3c2df13adaee439b0ad6ab9f50796cb..dfa537a03be1e187fe8772b83a44639600d1cdf4 100644 (file)
@@ -240,7 +240,6 @@ static void pgd_mop_up_pmds(struct mm_struct *mm, pgd_t *pgdp)
 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[])
 {
        pud_t *pud;
-       unsigned long addr;
        int i;
 
        if (PREALLOCATED_PMDS == 0) /* Work around gcc-3.4.x bug */
@@ -248,8 +247,7 @@ static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[])
 
        pud = pud_offset(pgd, 0);
 
-       for (addr = i = 0; i < PREALLOCATED_PMDS;
-            i++, pud++, addr += PUD_SIZE) {
+       for (i = 0; i < PREALLOCATED_PMDS; i++, pud++) {
                pmd_t *pmd = pmds[i];
 
                if (i >= KERNEL_PGD_BOUNDARY)