diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-10-06 02:19:47 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-11 01:55:27 +0200 |
commit | ddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2 (patch) | |
tree | 38e871422ccb6168ae84ca6e33e9374715c3df9b /drivers/net/hamachi.c | |
parent | s2io: sparse warnings fix (rev2) (diff) | |
download | linux-ddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2.tar.xz linux-ddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2.zip |
network drivers: sparse warning fixes
Fix some of the easy warnings in network device drivers.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/hamachi.c')
-rw-r--r-- | drivers/net/hamachi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index 015ed3a4057f..ed407c85708f 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c @@ -1017,7 +1017,7 @@ static inline int hamachi_tx(struct net_device *dev) break; /* Free the original skb. */ skb = hmp->tx_skbuff[entry]; - if (skb != 0) { + if (skb) { pci_unmap_single(hmp->pci_dev, hmp->tx_ring[entry].addr, skb->len, PCI_DMA_TODEVICE); @@ -1069,7 +1069,6 @@ static void hamachi_tx_timeout(struct net_device *dev) " resetting...\n", dev->name, (int)readw(ioaddr + TxStatus)); { - int i; printk(KERN_DEBUG " Rx ring %p: ", hmp->rx_ring); for (i = 0; i < RX_RING_SIZE; i++) printk(" %8.8x", (unsigned int)hmp->rx_ring[i].status_n_length); |