Searched hist:"02 f9876ebb5e9cd31013c62b8839508b2dc152f0" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ecryptfs/ |
H A D | crypto.c | diff 02f9876ebb5e9cd31013c62b8839508b2dc152f0 Sun Oct 01 14:30:46 CDT 2017 Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> 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>
|