linux/drivers/net/ethernet
Joe Perches 6469933605 ethernet: Remove casts to same type
Adding casts of objects to the same type is unnecessary
and confusing for a human reader.

For example, this cast:

        int y;
        int *p = (int *)&y;

I used the coccinelle script below to find and remove these
unnecessary casts.  I manually removed the conversions this
script produces of casts with __force, __iomem and __user.

@@
type T;
T *p;
@@

-       (T *)p
+       p

A function in atl1e_main.c was passed a const pointer
when it actually modified elements of the structure.

Change the argument to a non-const pointer.

A function in stmmac needed a __force to avoid a sparse
warning.  Added it.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-06 09:31:33 -07:00
..
3com Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
8390 ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
adaptec
adi
aeroflex ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
alteon
amd ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
apple ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
atheros ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
broadcom ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
brocade ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
cadence
calxeda
chelsio ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
cirrus cirrus: cs89x0: Remove function prototypes and reorder declarations 2012-05-18 23:48:07 -04:00
cisco drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
davicom dm9000: some coldfire boards need this 2012-05-14 18:40:16 -04:00
dec ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
dlink Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-07 23:35:40 -04:00
emulex be2net: update driver version 2012-06-06 09:06:18 -07:00
faraday
freescale ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
fujitsu drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
hp ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
i825xx ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
ibm ehea: fix losing of NEQ events when one event occurred early 2012-05-10 22:45:54 -04:00
icplus
intel e1000e: fix Rapid Start Technology support for i217 2012-06-02 00:12:33 -07:00
marvell ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
mellanox ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
micrel net/ethernet: ks8851_mll mac address configuration support added 2012-06-04 11:43:00 -04:00
microchip
myricom
natsemi drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
neterion ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
nuvoton
nvidia
nxp arm-soc: device tree conversions, part 1 2012-05-22 09:30:52 -07:00
octeon
oki-semi Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-16 22:17:37 -04:00
packetengines
pasemi
qlogic Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
racal
rdc r6040: Do a Proper deinit at errorpath and also when driver unloads (calling r6040_remove_one) 2012-05-29 22:31:08 -04:00
realtek r8169: call netif_napi_del at errpaths and at driver unload 2012-06-01 18:44:32 -04:00
renesas net: sh_eth: fix the rxdesc pointer when rx descriptor empty happens 2012-05-29 17:30:08 -04:00
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-16 22:17:37 -04:00
sgi ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
silan
sis
smsc ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
stmicro ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
sun ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
tehuti Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
ti arm-soc: cleanups, part 2 2012-05-26 12:31:49 -07:00
tile drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
toshiba drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
tundra
via ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
mipsnet.c
netx-eth.c
s6gmac.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00