]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xen/kimage: Remove defined but unused variables
authorJulien Grall <julien.grall@linaro.org>
Thu, 5 Oct 2017 17:42:18 +0000 (18:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Oct 2017 12:36:43 +0000 (13:36 +0100)
In the function kimage_alloc_normal_control_page, the variables mfn and
emfn are defined but not used. Remove them.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/kimage.c

index cf624d10fd2154db1529b98d9d3968b9bd0a886b..2ef83c8b807f6bad81f86d81053900dd58335410 100644 (file)
@@ -310,14 +310,11 @@ static struct page_info *kimage_alloc_normal_control_page(
      * destination page.
      */
     do {
-        unsigned long mfn, emfn;
         paddr_t addr, eaddr;
 
         page = kimage_alloc_zeroed_page(memflags);
         if ( !page )
             break;
-        mfn   = page_to_mfn(page);
-        emfn  = mfn + 1;
         addr  = page_to_maddr(page);
         eaddr = addr + PAGE_SIZE;
         if ( kimage_is_destination_range(image, addr, eaddr) )