mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
26cada81c4
commit
e57b00f0b7
1 file changed
+1
-3
@@ -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) )
|
||||
{
|
||||
|
||||