diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2006-01-29 01:30:48 +0100 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2006-08-31 22:15:40 +0200 |
commit | c48e9399e895834f26dff9149de1930ba18a0d6c (patch) | |
tree | 3a85dfd9c2426e5ede98aa41e2ad59c2cd9c9abf /drivers/net/8139cp.c | |
parent | 3598b57be449a2ee9178e5c511bdb1a8aaccba20 (diff) | |
download | kernel_samsung_espresso10-c48e9399e895834f26dff9149de1930ba18a0d6c.zip kernel_samsung_espresso10-c48e9399e895834f26dff9149de1930ba18a0d6c.tar.gz kernel_samsung_espresso10-c48e9399e895834f26dff9149de1930ba18a0d6c.tar.bz2 |
8139cp: remove gratuitous indirection
dev is an argument of the current function.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 8f5d779..ae9bb75 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c @@ -571,7 +571,7 @@ rx_status_loop: 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 @@ rx_status_loop: } 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); |