All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: jgarzik <jgarzik@pobox.com>, netdev@oss.sgi.com
Subject: Re: [janitor] remove casts in drivers/net/arm/
Date: Tue, 2 Mar 2004 12:10:42 +0000	[thread overview]
Message-ID: <20040302121042.A9931@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20040229143436.4bb884ee.rddunlap@osdl.org>; from rddunlap@osdl.org on Sun, Feb 29, 2004 at 02:34:36PM -0800

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.

> 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

  reply	other threads:[~2004-03-02 12:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040229142516.3d218ed0.rddunlap@osdl.org>
2004-02-29 22:34 ` [janitor] remove casts in drivers/net/arm/ Randy.Dunlap
2004-03-02 12:10   ` Russell King [this message]
     [not found]     ` <4044D86C.70709@pobox.com>
2004-03-02 19:02       ` Randy.Dunlap
2004-03-02 19:07         ` Jeff Garzik
2004-03-02 19:17           ` Randy.Dunlap
2004-03-02 19:29             ` Jeff Garzik
2004-03-02 19:36               ` Russell King
2004-02-29 22:35 ` [janitor] remove unneeded casts in /hamradio/ Randy.Dunlap
2004-02-29 22:35 ` [janitor] remove unneeded casts in /appletalk/ & /fc/ Randy.Dunlap
2004-02-29 22:38 ` [janitor] remove unneeded casts in net/pcmcia/ Randy.Dunlap
2004-02-29 22:40 ` [janitor] remove unneeded casts in net/wan/ Randy.Dunlap
2004-02-29 22:42 ` [janitor] remove unneeded casts in net/wireless/ Randy.Dunlap
2004-02-29 22:53 ` [janitor] remove unneeded casts in lance drivers Randy.Dunlap
2004-02-29 22:54 ` [janitor] remove unneeded casts in 3com drivers Randy.Dunlap
2004-02-29 22:56 ` [janitor] remove unneeded casts in intel-ee drivers Randy.Dunlap
2004-02-29 22:57 ` [janitor] remove unneeded casts in generic drivers/net/ Randy.Dunlap
2004-02-29 23:01 ` [janitor] remove unneeded casts in 3c527 Randy.Dunlap
2004-02-29 23:02 ` [janitor] remove unneeded casts (others) Randy.Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040302121042.A9931@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=jgarzik@pobox.com \
    --cc=netdev@oss.sgi.com \
    --cc=rddunlap@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.