commit | fbc61291d7da41ec19f339311297f59213165227 | [log] [tgz] |
---|---|---|
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | Sun Oct 01 15:30:49 2017 -0400 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri Nov 10 15:44:52 2017 -0500 |
tree | 57d695fa21a87bcb9cb41fd80780d1065daa1b28 | |
parent | 98d82f48f1983ceef5c8d2f6c87bfee2918790ee [diff] |
dm space map metadata: 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: Mike Snitzer <snitzer@redhat.com>