Skip to contentSkip to conversation

xen/grant-table: Remove 'led' variable in map_grant_ref

PATCH In review Julien Grall 2 participants 2 messages Feb 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/grant-table: Remove 'led' variable in map_grant_ref

From: Julien Grall <[email protected]>

The name of the variable 'led' is confusing and only used in one place a line after. So remove it.

---
 xen/common/grant_table.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
xen/common/grant_table.c +1 -3
index 057c78f620..9fd6e60416 100644
@@ -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) )
     {
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel