mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 14:21:07 +02:00
ramips_eth: remove unnecessary typecasts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19445 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2e8d8d35d9
commit
48f3d520ec
@ -241,7 +241,7 @@ ramips_eth_tx_housekeeping(unsigned long ptr)
|
||||
|
||||
while ((priv->tx[priv->skb_free_idx].txd2 & TX_DMA_DONE) &&
|
||||
(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->skb_free_idx++;
|
||||
if (priv->skb_free_idx >= NUM_TX_DESC)
|
||||
@ -255,7 +255,7 @@ ramips_eth_tx_housekeeping(unsigned long ptr)
|
||||
static int
|
||||
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))
|
||||
return -EBUSY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user