aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/amd8111e.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-22 21:37:46 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:58 -0400
commitee41a82fa362449e608c4dab7df261058ffd52c0 (patch)
tree9345eae60266edba9e694eb2aec86b080238614f /drivers/net/amd8111e.c
parentcc2d6596ca79667830a90ca177ba53b0d83262de (diff)
amd8111e: trivial endianness annotations, NULL noise removal
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/amd8111e.c')
-rw-r--r--drivers/net/amd8111e.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c
index 73f40a45441a..babe0de2ce44 100644
--- a/drivers/net/amd8111e.c
+++ b/drivers/net/amd8111e.c
@@ -1404,7 +1404,7 @@ This function checks if there is any transmit descriptors available to queue mo
1404static int amd8111e_tx_queue_avail(struct amd8111e_priv* lp ) 1404static int amd8111e_tx_queue_avail(struct amd8111e_priv* lp )
1405{ 1405{
1406 int tx_index = lp->tx_idx & TX_BUFF_MOD_MASK; 1406 int tx_index = lp->tx_idx & TX_BUFF_MOD_MASK;
1407 if(lp->tx_skbuff[tx_index] != 0) 1407 if (lp->tx_skbuff[tx_index])
1408 return -1; 1408 return -1;
1409 else 1409 else
1410 return 0; 1410 return 0;
@@ -1441,7 +1441,7 @@ static int amd8111e_start_xmit(struct sk_buff *skb, struct net_device * dev)
1441 lp->tx_dma_addr[tx_index] = 1441 lp->tx_dma_addr[tx_index] =
1442 pci_map_single(lp->pci_dev, skb->data, skb->len, PCI_DMA_TODEVICE); 1442 pci_map_single(lp->pci_dev, skb->data, skb->len, PCI_DMA_TODEVICE);
1443 lp->tx_ring[tx_index].buff_phy_addr = 1443 lp->tx_ring[tx_index].buff_phy_addr =
1444 (u32) cpu_to_le32(lp->tx_dma_addr[tx_index]); 1444 cpu_to_le32(lp->tx_dma_addr[tx_index]);
1445 1445
1446 /* Set FCS and LTINT bits */ 1446 /* Set FCS and LTINT bits */
1447 wmb(); 1447 wmb();
@@ -1998,7 +1998,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
1998 spin_lock_init(&lp->lock); 1998 spin_lock_init(&lp->lock);
1999 1999
2000 lp->mmio = ioremap(reg_addr, reg_len); 2000 lp->mmio = ioremap(reg_addr, reg_len);
2001 if (lp->mmio == 0) { 2001 if (!lp->mmio) {
2002 printk(KERN_ERR "amd8111e: Cannot map device registers, " 2002 printk(KERN_ERR "amd8111e: Cannot map device registers, "
2003 "exiting\n"); 2003 "exiting\n");
2004 err = -ENOMEM; 2004 err = -ENOMEM;