[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 03/22] Remove some trivial code duplication in gnttab.c.



Signed-off-by: Steven Smith <steven.smith@xxxxxxxxxx>
---
 drivers/xen/core/gnttab.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/xen/core/gnttab.c b/drivers/xen/core/gnttab.c
index 7605c45..9a8fc89 100644
--- a/drivers/xen/core/gnttab.c
+++ b/drivers/xen/core/gnttab.c
@@ -152,11 +152,7 @@ int gnttab_grant_foreign_access(domid_t domid, unsigned 
long frame,
        if (unlikely((ref = get_free_entry()) < 0))
                return -ENOSPC;
 
-       shared[ref].frame = frame;
-       shared[ref].domid = domid;
-       wmb();
-       BUG_ON(flags & (GTF_accept_transfer | GTF_reading | GTF_writing));
-       shared[ref].flags = GTF_permit_access | flags;
+       gnttab_grant_foreign_access_ref(ref, domid, frame, flags);
 
        return ref;
 }
-- 
1.6.3.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.