diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-10-05 20:19:47 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:27 -0400 |
commit | ddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2 (patch) | |
tree | 38e871422ccb6168ae84ca6e33e9374715c3df9b /drivers/net/tehuti.c | |
parent | 43b7c451a03fe5f615710e26e8e2a3dd70eaa5b1 (diff) |
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/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 248343177356..8d04654f0c59 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -750,7 +750,6 @@ bdx_vlan_rx_register(struct net_device *ndev, struct vlan_group *grp) | |||
750 | */ | 750 | */ |
751 | static int bdx_change_mtu(struct net_device *ndev, int new_mtu) | 751 | static int bdx_change_mtu(struct net_device *ndev, int new_mtu) |
752 | { | 752 | { |
753 | BDX_ASSERT(ndev == 0); | ||
754 | ENTER; | 753 | ENTER; |
755 | 754 | ||
756 | if (new_mtu == ndev->mtu) | 755 | if (new_mtu == ndev->mtu) |
@@ -1002,7 +1001,7 @@ static inline void bdx_rxdb_free_elem(struct rxdb *db, int n) | |||
1002 | static int bdx_rx_init(struct bdx_priv *priv) | 1001 | static int bdx_rx_init(struct bdx_priv *priv) |
1003 | { | 1002 | { |
1004 | ENTER; | 1003 | ENTER; |
1005 | BDX_ASSERT(priv == 0); | 1004 | |
1006 | if (bdx_fifo_init(priv, &priv->rxd_fifo0.m, priv->rxd_size, | 1005 | if (bdx_fifo_init(priv, &priv->rxd_fifo0.m, priv->rxd_size, |
1007 | regRXD_CFG0_0, regRXD_CFG1_0, | 1006 | regRXD_CFG0_0, regRXD_CFG1_0, |
1008 | regRXD_RPTR_0, regRXD_WPTR_0)) | 1007 | regRXD_RPTR_0, regRXD_WPTR_0)) |
@@ -1747,7 +1746,6 @@ static void bdx_tx_cleanup(struct bdx_priv *priv) | |||
1747 | tx_level -= db->rptr->len; /* '-' koz len is negative */ | 1746 | tx_level -= db->rptr->len; /* '-' koz len is negative */ |
1748 | 1747 | ||
1749 | /* now should come skb pointer - free it */ | 1748 | /* now should come skb pointer - free it */ |
1750 | BDX_ASSERT(db->rptr->addr.skb == 0); | ||
1751 | dev_kfree_skb_irq(db->rptr->addr.skb); | 1749 | dev_kfree_skb_irq(db->rptr->addr.skb); |
1752 | bdx_tx_db_inc_rptr(db); | 1750 | bdx_tx_db_inc_rptr(db); |
1753 | } | 1751 | } |