linux-stable/drivers/net/ethernet/brocade/bna
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
..
bfa_cee.c drivers/net: Remove boolean comparisons to true/false 2012-02-13 00:47:40 -05:00
bfa_cee.h bna: Add debugfs interface. 2011-12-23 16:50:58 -05:00
bfa_cs.h
bfa_defs.h bna: Implement ethtool flash_device entry point. 2012-02-01 23:11:59 -05:00
bfa_defs_cna.h bna: PLL Init Fix and Add Stats Attributes 2011-09-29 19:36:35 -04:00
bfa_defs_mfg_comm.h bna: Capability Map and MFG Block Changes for New HW 2011-09-29 19:36:34 -04:00
bfa_defs_status.h
bfa_ioc.c bna: ioc cleanups 2012-04-04 18:19:17 -04:00
bfa_ioc.h bna: Add debugfs interface. 2011-12-23 16:50:58 -05:00
bfa_ioc_ct.c bna: Flash controller ioc pll init fixes 2012-04-04 18:19:17 -04:00
bfa_msgq.c bna: off by one in bfa_msgq_rspq_pi_update() 2011-08-26 12:55:18 -04:00
bfa_msgq.h
bfi.h bna: Add debugfs interface. 2011-12-23 16:50:58 -05:00
bfi_cna.h
bfi_enet.h bna: Introduce ENET as New Driver and FW Interface 2011-08-11 07:30:12 -07:00
bfi_reg.h bna: Flash controller ioc pll init fixes 2012-04-04 18:19:17 -04:00
bna.h bna: make function tables cont 2011-09-16 19:20:20 -04:00
bna_enet.c bna: Add debugfs interface. 2011-12-23 16:50:58 -05:00
bna_hw_defs.h bna: Brocade 1860 HW Enablement 2011-09-29 19:36:35 -04:00
bna_tx_rx.c bna: Add Callback to Fix RXQ Stop 2011-09-29 19:36:36 -04:00
bna_types.h bna: fix sparse warnings/errors 2012-01-05 13:23:00 -05:00
bnad.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
bnad.h bna: Update driver version to 3.0.23.0 2012-04-04 18:19:18 -04:00
bnad_debugfs.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2012-03-21 13:36:41 -07:00
bnad_ethtool.c bna: Function name changes and cleanups 2012-04-04 18:19:18 -04:00
cna.h bna: Convert MAC_ADDRLEN uses to ETH_ALEN 2011-11-16 20:23:18 -05:00
cna_fwimg.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
Kconfig
Makefile bna: Add debugfs interface. 2011-12-23 16:50:58 -05:00