linux_dsm_epyc7002/drivers/net/ethernet/8390
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
..
3c503.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
3c503.h 8390: Move the 8390 related drivers 2011-08-10 19:54:25 -07:00
8390.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
8390.h ethernet: Convert ETHER_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
8390p.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
ac3200.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
apne.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
ax88796.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-10 14:30:45 -04:00
axnet_cs.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
e2100.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
es3210.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
etherh.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-10 14:30:45 -04:00
hp-plus.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hp.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hydra.c ethernet: Convert ETHER_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
Kconfig drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
lib8390.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
lne390.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
mac8390.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
Makefile drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
ne2k-pci.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ne3210.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ne-h8300.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ne.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
pcnet_cs.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
smc-ultra32.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
smc-ultra.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
stnic.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
wd.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
zorro8390.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00