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>
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;
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) )
{