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

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>
This commit is contained in:
Julien Grall authored and Julien Grall committed 2020-03-05 12:59:46 +00:00
1 parent 26cada81c4
commit e57b00f0b7
1 file changed
+1 -3
+1 -3
View 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) )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.