Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27f85228 authored by Wei Liu's avatar Wei Liu Committed by David S. Miller
Browse files

xen-netback: remove skb in xen_netbk_alloc_page



This variable is never used.

Signed-off-by: default avatarWei Liu <wei.liu2@citrix.com>
Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7158ff6d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -942,7 +942,6 @@ static int netbk_count_requests(struct xenvif *vif,
}

static struct page *xen_netbk_alloc_page(struct xen_netbk *netbk,
					 struct sk_buff *skb,
					 u16 pending_idx)
{
	struct page *page;
@@ -976,7 +975,7 @@ static struct gnttab_copy *xen_netbk_get_requests(struct xen_netbk *netbk,

		index = pending_index(netbk->pending_cons++);
		pending_idx = netbk->pending_ring[index];
		page = xen_netbk_alloc_page(netbk, skb, pending_idx);
		page = xen_netbk_alloc_page(netbk, pending_idx);
		if (!page)
			goto err;

@@ -1381,7 +1380,7 @@ static unsigned xen_netbk_tx_build_gops(struct xen_netbk *netbk)
		}

		/* XXX could copy straight to head */
		page = xen_netbk_alloc_page(netbk, skb, pending_idx);
		page = xen_netbk_alloc_page(netbk, pending_idx);
		if (!page) {
			kfree_skb(skb);
			netbk_tx_err(vif, &txreq, idx);