[janitor] "Lots of unnecessary casts in drivers can be removed"
From: Randy.Dunlap <hidden>
Date: 2004-03-04 21:14:43
From: Randy.Dunlap <hidden>
Date: 2004-03-04 21:14:43
[resend] Dave Jones wrote: - Lots of unnecessary casts in drivers can be removed. (from the KJ TODO list). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: Carlo Perassi <redacted> 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