diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-01 21:30:46 +0200 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2017-11-06 19:23:59 +0100 |
commit | 02f9876ebb5e9cd31013c62b8839508b2dc152f0 (patch) | |
tree | daba01fc309974a4da5457b2b5d382861a3a9594 /fs/ecryptfs/inode.c | |
parent | ecryptfs: Adjust four checks for null pointers (diff) | |
download | linux-02f9876ebb5e9cd31013c62b8839508b2dc152f0.tar.xz linux-02f9876ebb5e9cd31013c62b8839508b2dc152f0.zip |
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 'fs/ecryptfs/inode.c')
0 files changed, 0 insertions, 0 deletions