]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/grant-table: Remove 'led' variable in map_grant_ref
authorJulien Grall <jgrall@amazon.com>
Tue, 25 Feb 2020 18:36:33 +0000 (18:36 +0000)
committerJulien Grall <julien@xen.org>
Thu, 5 Mar 2020 12:59:46 +0000 (12:59 +0000)
The name of the variable 'led' is confusing and only used in one place a
line after. So remove it.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/grant_table.c

index 057c78f620523732567b5c1d6ca7e77351e12f7a..9fd6e604168248ae9edd7c1c47db7d5ac24e497c 100644 (file)
@@ -944,7 +944,6 @@ map_grant_ref(
     struct domain *ld, *rd, *owner = NULL;
     struct grant_table *lgt, *rgt;
     grant_ref_t ref;
-    struct vcpu   *led;
     grant_handle_t handle;
     mfn_t mfn;
     struct page_info *pg = NULL;
@@ -957,8 +956,7 @@ map_grant_ref(
     uint16_t *status;
     bool_t need_iommu;
 
-    led = current;
-    ld = led->domain;
+    ld = current->domain;
 
     if ( unlikely((op->flags & (GNTMAP_device_map|GNTMAP_host_map)) == 0) )
     {