linux/drivers/net/ethernet/mellanox/mlx4
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
..
alloc.c mlx4_core: Change bitmap allocator to work in round-robin fashion 2012-05-14 13:44:38 -07:00
catas.c
cmd.c net/mlx4_core: Fixes for VF / Guest startup flow 2012-05-31 18:18:16 -04:00
cq.c
en_cq.c mlx4_en: Moving to Interrupts for TX completions 2012-04-23 22:34:02 -04:00
en_dcb_nl.c drivers/net: fix unresolved 64bit math in mellanox/mlx4/en_dcb_nl.c 2012-04-16 02:12:11 -04:00
en_ethtool.c mlx4_en: Added Ethtool support for TX Interrupt coalescing 2012-04-23 22:34:02 -04:00
en_main.c net/mlx4_en: Fix improper use of "port" parameter in mlx4_en_event 2012-05-31 18:18:16 -04:00
en_netdev.c net/mlx4_en: num cores tx rings for every UP 2012-05-17 16:17:50 -04:00
en_port.c
en_port.h net/mlx4_core: set port QoS attributes 2012-04-05 05:08:03 -04:00
en_resources.c net/mlx4_en: Force user priority by QP attribute 2012-04-05 05:08:03 -04:00
en_rx.c net/mlx4_en: Force user priority by QP attribute 2012-04-05 05:08:03 -04:00
en_selftest.c
en_tx.c net/mlx4_en: num cores tx rings for every UP 2012-05-17 16:17:50 -04:00
eq.c net/mlx4_core: Fix the slave_id out-of-range test in mlx4_eq_int 2012-05-31 18:18:15 -04:00
fw.c net/mlx4_core: Fix obscure mlx4_cmd_box parameter in QUERY_DEV_CAP 2012-05-31 18:18:16 -04:00
fw.h mlx4_core: Add second capabilities flags field 2012-05-08 11:54:32 -07:00
icm.c
icm.h
intf.c
Kconfig net/mlx4_en: DCB QoS support 2012-04-05 05:08:04 -04:00
main.c net/mlx4_core: Check port out-of-range before using in mlx4_slave_cap 2012-05-31 18:18:16 -04:00
Makefile net/mlx4_en: DCB QoS support 2012-04-05 05:08:04 -04:00
mcg.c net/mlx4: Address build warnings on set but not used variables 2012-05-16 00:56:58 -04:00
mlx4_en.h net/mlx4_en: num cores tx rings for every UP 2012-05-17 16:17:50 -04:00
mlx4.h net/mlx4_core: Fixes for VF / Guest startup flow 2012-05-31 18:18:16 -04:00
mr.c net/mlx4_core: Change SYNC_TPT to be native (not wrapped) 2012-05-16 00:56:58 -04:00
pd.c net/mlx4_core: Add XRC domains and counters to resource tracker 2012-05-16 00:56:59 -04:00
port.c net/mlx4: Address build warnings on set but not used variables 2012-05-16 00:56:58 -04:00
profile.c net/mlx4_core: Fix number of EQs used in ICM initialisation 2012-05-31 18:18:16 -04:00
qp.c
reset.c
resource_tracker.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
sense.c
srq.c