aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorJérémy Lefaure <[email protected]>2017-10-01 19:30:50 +0000
committerThomas Gleixner <[email protected]>2017-10-19 14:15:47 +0000
commit0cfe5b5fc0277463fa795dea312a3a2fd5e8bac2 (patch)
tree8a572441fff7dbd736c7c9029fbe5b40932d5572 /drivers/fpga/fpga-region.c
parentLinux 4.14-rc5 (diff)
downloadkernel-0cfe5b5fc0277463fa795dea312a3a2fd5e8bac2.tar.gz
kernel-0cfe5b5fc0277463fa795dea312a3a2fd5e8bac2.zip
x86: Use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: Martin Mares <[email protected]> Cc: Andy Lutomirski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions