| commit | 4d2e2e59026f565e5beb72af66386acf3e56fb2c | [log] [tgz] |
|---|---|---|
| author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | Sun Oct 01 15:30:46 2017 -0400 |
| committer | Tyler Hicks <tyhicks@canonical.com> | Sat Oct 14 02:06:53 2017 +0000 |
| tree | 150aa3f18e8c776e72f853ffa7731fb56eb9bacb | |
| parent | 3e9de5b92ae15ec38cc8adcf15583c1f5e187a27 [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>