linux_dsm_epyc7002/drivers/net/ethernet/freescale
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
..
fs_enet fs_enet: Support the get_ts_info ethtool method. 2012-04-04 05:28:47 -04:00
fec_mpc52xx_phy.c freescale: Move the Freescale drivers 2011-08-12 00:22:12 -07:00
fec_mpc52xx.c fec_mpc52xx: fix timestamp filtering 2012-06-02 17:09:08 -04:00
fec_mpc52xx.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
fec.c arm-soc: clock driver changes 2012-05-26 12:42:29 -07:00
fec.h net: fsl: fec: handle 10Mbps speed in RMII mode 2012-01-12 20:05:28 -08:00
fsl_pq_mdio.c Fix non TBI PHY access; a bad merge undid bug fix in a previous commit. 2012-04-01 16:47:12 -04:00
fsl_pq_mdio.h freescale: Move the Freescale drivers 2011-08-12 00:22:12 -07:00
gianfar_ethtool.c gianfar_ethtool: coding style and whitespace cleanups 2012-06-05 15:38:40 -07:00
gianfar_ptp.c gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
gianfar_sysfs.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
gianfar.c gianfar: Remove superfluous initialisations 2012-06-05 15:38:40 -07:00
gianfar.h gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-01-04 21:35:43 -05:00
Makefile freescale: Move the Freescale drivers 2011-08-12 00:22:12 -07:00
ucc_geth_ethtool.c ucc_geth: Support the get_ts_info ethtool method. 2012-04-04 05:28:48 -04:00
ucc_geth.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
ucc_geth.h net: ucc_geth, increase no. of HW RX descriptors 2012-05-02 20:09:04 -04:00