ramips_eth: remove unnecessary typecasts

SVN-Revision: 19445
owl
Gabor Juhos 2010-01-31 12:48:51 +00:00
parent 8aceaf96be
commit 224edd2575
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ ramips_eth_tx_housekeeping(unsigned long ptr)
while ((priv->tx[priv->skb_free_idx].txd2 & TX_DMA_DONE) && while ((priv->tx[priv->skb_free_idx].txd2 & TX_DMA_DONE) &&
(priv->tx_skb[priv->skb_free_idx])) { (priv->tx_skb[priv->skb_free_idx])) {
dev_kfree_skb_irq((struct sk_buff *) priv->tx_skb[priv->skb_free_idx]); dev_kfree_skb_irq(priv->tx_skb[priv->skb_free_idx]);
priv->tx_skb[priv->skb_free_idx] = 0; priv->tx_skb[priv->skb_free_idx] = 0;
priv->skb_free_idx++; priv->skb_free_idx++;
if (priv->skb_free_idx >= NUM_TX_DESC) if (priv->skb_free_idx >= NUM_TX_DESC)
@ -255,7 +255,7 @@ ramips_eth_tx_housekeeping(unsigned long ptr)
static int static int
ramips_eth_set_mac_addr(struct net_device *dev, void *priv) ramips_eth_set_mac_addr(struct net_device *dev, void *priv)
{ {
unsigned char *mac = (unsigned char *) priv; unsigned char *mac = priv;
if (netif_running(dev)) if (netif_running(dev))
return -EBUSY; return -EBUSY;