Commit c48e9399 authored by Francois Romieu's avatar Francois Romieu

8139cp: remove gratuitous indirection

dev is an argument of the current function.
Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
parent 3598b57b
......@@ -571,7 +571,7 @@ static int cp_rx_poll (struct net_device *dev, int *budget)
if (netif_msg_rx_status(cp))
printk(KERN_DEBUG "%s: rx slot %d status 0x%x len %d\n",
cp->dev->name, rx_tail, status, len);
dev->name, rx_tail, status, len);
buflen = cp->rx_buf_sz + RX_OFFSET;
new_skb = dev_alloc_skb (buflen);
......@@ -581,7 +581,7 @@ static int cp_rx_poll (struct net_device *dev, int *budget)
}
skb_reserve(new_skb, RX_OFFSET);
new_skb->dev = cp->dev;
new_skb->dev = dev;
pci_unmap_single(cp->pdev, mapping,
buflen, PCI_DMA_FROMDEVICE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment