summaryrefslogtreecommitdiff
path: root/Documentation/x86/boot.txt
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-11-13 22:19:41 -0500
committerKalle Valo <kvalo@codeaurora.org>2017-12-08 15:19:46 +0200
commit53ac793593275a7d9cf9cd3d88e730f6c2521730 (patch)
tree3c3e56cc96bce7a8cece664cc9af5b2d281f40c3 /Documentation/x86/boot.txt
parent59365b9efd48b113badfa9dafbb391ef84fa7b08 (diff)
wireless: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. 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 <jeremy.lefaure@lse.epita.fr> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/x86/boot.txt')
0 files changed, 0 insertions, 0 deletions