mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
6469933605
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> |
||
---|---|---|
.. | ||
bfa_cee.c | ||
bfa_cee.h | ||
bfa_cs.h | ||
bfa_defs.h | ||
bfa_defs_cna.h | ||
bfa_defs_mfg_comm.h | ||
bfa_defs_status.h | ||
bfa_ioc.c | ||
bfa_ioc.h | ||
bfa_ioc_ct.c | ||
bfa_msgq.c | ||
bfa_msgq.h | ||
bfi.h | ||
bfi_cna.h | ||
bfi_enet.h | ||
bfi_reg.h | ||
bna.h | ||
bna_enet.c | ||
bna_hw_defs.h | ||
bna_tx_rx.c | ||
bna_types.h | ||
bnad.c | ||
bnad.h | ||
bnad_debugfs.c | ||
bnad_ethtool.c | ||
cna.h | ||
cna_fwimg.c | ||
Kconfig | ||
Makefile |