aboutsummaryrefslogtreecommitdiff
path: root/fs/ecryptfs/inode.c
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-10-01 15:30:46 -0400
committerTyler Hicks <tyhicks@canonical.com>2017-11-06 18:23:59 +0000
commit02f9876ebb5e9cd31013c62b8839508b2dc152f0 (patch)
treedaba01fc309974a4da5457b2b5d382861a3a9594 /fs/ecryptfs/inode.c
parent5032f360dd31e6cf59aadad0478df1244bfd30f8 (diff)
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