Skip to content

Commit

Permalink
xen-netback: remove skb in xen_netbk_alloc_page
Browse files Browse the repository at this point in the history
This variable is never used.

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>
  • Loading branch information
Wei Liu authored and David S. Miller committed Mar 25, 2013
1 parent 7158ff6 commit 27f8522
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/xen-netback/netback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 27f8522

Please sign in to comment.