mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 01:40:56 +07:00
87c1687d1a
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @i@ @@ #include <linux/kernel.h> @depends on i using "paren.iso"@ type T; T[] E; @@ - (sizeof(E)/sizeof(E[...])) + ARRAY_SIZE(E) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
ani.c | ||
ath9k.h | ||
beacon.c | ||
calib.c | ||
core.c | ||
core.h | ||
eeprom.c | ||
hw.c | ||
hw.h | ||
initvals.h | ||
Kconfig | ||
mac.c | ||
main.c | ||
Makefile | ||
phy.c | ||
phy.h | ||
rc.c | ||
rc.h | ||
recv.c | ||
reg.h | ||
regd_common.h | ||
regd.c | ||
regd.h | ||
xmit.c |