netdev
[Top] [All Lists]

[janitor] "Lots of unnecessary casts in drivers can be removed"

To: netdev <netdev@xxxxxxxxxxx>
Subject: [janitor] "Lots of unnecessary casts in drivers can be removed"
From: "Randy.Dunlap" <rddunlap@xxxxxxxx>
Date: Thu, 4 Mar 2004 13:14:43 -0800
Organization: OSDL
Sender: netdev-bounce@xxxxxxxxxxx
[resend]

Dave Jones wrote:
- Lots of unnecessary casts in drivers can be removed.

(from the KJ TODO list).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: Carlo Perassi <carlo@xxxxxxxx>

Carlo sent patches to remove unneeded casts from 90 files.
Most of them are in drivers/net/ and will follow...
(not one per file but grouped into families).


and Russell King wrote about the first round of patches:
} I think we should really consider using netdev_priv() in all these places
} so the compiler knows that 'dev' and 'priv' are related.

so this set of patches in round 2 teaches net drivers to use
netdev_priv() in addition to eliminating the unneeded casts.


Here they are again....

Please apply/merge to 2.6.4-rc-current.

Built as much as I have possible, and running with eepro100.

--
~Randy

<Prev in Thread] Current Thread [Next in Thread>
  • [janitor] "Lots of unnecessary casts in drivers can be removed", Randy.Dunlap <=