aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2011-12-05 19:08:20 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-06 13:14:24 -0500
commit16ecba2605a3bbd374cd993e532264e2d8de49e5 (patch)
treece85eeb15a9254da1ccaadca2ca27673183c2f8b /drivers/net/xen-netback
parent1d187b34daaecbb87aa523ba46b92930a388cb21 (diff)
netback: remove redundant assignment
New value for netbk->mmap_pages[pending_idx] is assigned in xen_netbk_alloc_page(), no need for a second assignment which exposes internal to the outside world. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r--drivers/net/xen-netback/netback.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 1ae270eed51a..ca0370e90cf9 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -940,8 +940,6 @@ static struct gnttab_copy *xen_netbk_get_requests(struct xen_netbk *netbk,
940 if (!page) 940 if (!page)
941 return NULL; 941 return NULL;
942 942
943 netbk->mmap_pages[pending_idx] = page;
944
945 gop->source.u.ref = txp->gref; 943 gop->source.u.ref = txp->gref;
946 gop->source.domid = vif->domid; 944 gop->source.domid = vif->domid;
947 gop->source.offset = txp->offset; 945 gop->source.offset = txp->offset;
@@ -1336,8 +1334,6 @@ static unsigned xen_netbk_tx_build_gops(struct xen_netbk *netbk)
1336 continue; 1334 continue;
1337 } 1335 }
1338 1336
1339 netbk->mmap_pages[pending_idx] = page;
1340
1341 gop->source.u.ref = txreq.gref; 1337 gop->source.u.ref = txreq.gref;
1342 gop->source.domid = vif->domid; 1338 gop->source.domid = vif->domid;
1343 gop->source.offset = txreq.offset; 1339 gop->source.offset = txreq.offset;