linux/drivers/net/ethernet/dec/tulip
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
..
21142.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
Kconfig
Makefile
de4x5.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
de4x5.h
de2104x.c de2104x: stop using net_device.{base_addr, irq}. 2012-04-07 11:47:16 +02:00
dmfe.c dmfe: enforce consistent timing delay. 2012-04-17 22:54:13 -04:00
eeprom.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
interrupt.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-06 11:48:09 -05:00
media.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
pnic.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
pnic2.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
timer.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
tulip.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
tulip_core.c tulip_core: stop using net_device.{base_addr, irq}. 2012-04-07 11:45:27 +02:00
uli526x.c uli526x: stop using net_device.{base_addr, irq} and convert to __iomem. 2012-04-07 11:47:17 +02:00
winbond-840.c winbond840: stop using net_device.{base_addr, irq}. 2012-04-07 11:45:26 +02:00
xircom_cb.c xircom_cb: stop using net_device.{base_addr, irq} and convert to __iomem. 2012-04-07 11:47:16 +02:00