patch-2.4.5 linux/drivers/net/ioc3-eth.c

Next file: linux/drivers/net/irda/Config.in
Previous file: linux/drivers/net/hp100.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/drivers/net/ioc3-eth.c linux/drivers/net/ioc3-eth.c
@@ -402,7 +402,7 @@
 
 static struct net_device_stats *ioc3_get_stats(struct net_device *dev)
 {
-	struct ioc3_private *ip = (struct ioc3_private *) dev->priv;
+	struct ioc3_private *ip = dev->priv;
 	struct ioc3 *ioc3 = ip->regs;
 
 	ip->stats.collisions += (ioc3->etcdc & ETCDC_COLLCNT_MASK);
@@ -566,7 +566,7 @@
    after the Tx thread.  */
 static void ioc3_interrupt(int irq, void *_dev, struct pt_regs *regs)
 {
-	struct net_device *dev = (struct net_device *)_dev;
+	struct net_device *dev = _dev;
 	struct ioc3_private *ip = dev->priv;
 	struct ioc3 *ioc3 = ip->regs;
 	const u32 enabled = EISR_RXTIMERINT | EISR_RXOFLO | EISR_RXBUFOFLO |
@@ -595,7 +595,7 @@
 static void negotiate(unsigned long data)
 {
 	struct net_device *dev = (struct net_device *) data;
-	struct ioc3_private *ip = (struct ioc3_private *) dev->priv;
+	struct ioc3_private *ip = dev->priv;
 	struct ioc3 *ioc3 = ip->regs;
 
 	mod_timer(&ip->negtimer, jiffies + 20 * HZ);
@@ -864,7 +864,7 @@
 		return -EAGAIN;
 	}
 
-	ip = (struct ioc3_private *) dev->priv;
+	ip = dev->priv;
 
 	ip->ehar_h = 0;
 	ip->ehar_l = 0;
@@ -1131,7 +1131,7 @@
 /* Provide ioctl() calls to examine the MII xcvr state. */
 static int ioc3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 {
-	struct ioc3_private *ip = (struct ioc3_private *) dev->priv;
+	struct ioc3_private *ip = dev->priv;
 	u16 *data = (u16 *)&rq->ifr_data;
 	struct ioc3 *ioc3 = ip->regs;
 	int phy = ip->phy;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)