diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-01 15:30:46 -0400 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2017-11-06 18:23:59 +0000 |
commit | 02f9876ebb5e9cd31013c62b8839508b2dc152f0 (patch) | |
tree | daba01fc309974a4da5457b2b5d382861a3a9594 /tools | |
parent | 5032f360dd31e6cf59aadad0478df1244bfd30f8 (diff) | |
download | linux-02f9876ebb5e9cd31013c62b8839508b2dc152f0.tar.bz2 |
ecryptfs: 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 <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions