Thread (1 message) 1 message, 1 author, 2004-03-02

Re: [janitor] remove casts in drivers/net/arm/

From: Russell King <hidden>
Date: 2004-03-02 12:10:42

Possibly related (same subject, not in this thread)

On Sun, Feb 29, 2004 at 02:34:36PM -0800, Randy.Dunlap wrote:
 drivers/net/arm/am79c961a.c |   18 +++++++++---------
 drivers/net/arm/ether1.c    |   18 +++++++++---------
 drivers/net/arm/ether3.c    |   18 +++++++++---------
 drivers/net/arm/etherh.c    |    4 ++--
 4 files changed, 29 insertions(+), 29 deletions(-)
I think we should really consider using netdev_priv() in all these places
so the compiler knows that 'dev' and 'priv' are related.
quoted hunk
diff -puN drivers/net/arm/am79c961a.c~net_arm_casts drivers/net/arm/am79c961a.c
--- linux-263-229/drivers/net/arm/am79c961a.c~net_arm_casts	2004-02-29 13:53:00.000000000 -0800
+++ linux-263-229-rddunlap/drivers/net/arm/am79c961a.c	2004-02-29 13:53:00.000000000 -0800
@@ -196,7 +196,7 @@ am79c961_ramtest(struct net_device *dev,
 static void
 am79c961_init_for_open(struct net_device *dev)
 {
-	struct dev_priv *priv = (struct dev_priv *)dev->priv;
+	struct dev_priv *priv = dev->priv;
 	unsigned long flags;
 	unsigned char *p;
 	u_int hdr_addr, first_free_addr;
-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help