[xen master] xen/kimage: Remove defined but unused variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xen/kimage: Remove defined but unused variables

patchbot
commit 49191124d93bf7bdb184481dfef7268acef880e6
Author:     Julien Grall <[hidden email]>
AuthorDate: Thu Oct 5 18:42:18 2017 +0100
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Fri Oct 6 13:36:43 2017 +0100

    xen/kimage: Remove defined but unused variables
   
    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 <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
---
 xen/common/kimage.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/xen/common/kimage.c b/xen/common/kimage.c
index cf624d1..2ef83c8 100644
--- a/xen/common/kimage.c
+++ b/xen/common/kimage.c
@@ -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) )
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog