提交 c48e9399 编写于 作者: F Francois Romieu

8139cp: remove gratuitous indirection

dev is an argument of the current function.
Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册