]> xenbits.xensource.com Git - people/hx242/xen.git/commitdiff
x86_64/mm.c: remove code that serves no purpose in setup_m2p_table
authorWei Liu <wei.liu2@citrix.com>
Thu, 31 Jan 2019 18:49:36 +0000 (18:49 +0000)
committerHongyan Xia <hongyax@amazon.com>
Wed, 2 Oct 2019 16:16:30 +0000 (17:16 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/x86_64/mm.c

index 460dbed0a848f962d38a0045804cbe4edfb691a4..6cc5c19af019175fa578dbb2ecdd5be38b8482b6 100644 (file)
@@ -480,8 +480,6 @@ static int setup_m2p_table(struct mem_hotadd_info *info)
             l2e_write(l2_ro_mpt, l2e_from_mfn(mfn,
                    /*_PAGE_GLOBAL|*/_PAGE_PSE|_PAGE_USER|_PAGE_PRESENT));
         }
-        if ( !((unsigned long)l2_ro_mpt & ~PAGE_MASK) )
-            l2_ro_mpt = NULL;
         i += ( 1UL << (L2_PAGETABLE_SHIFT - 3));
     }
 #undef CNT