diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-01 15:30:49 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-11-10 15:44:52 -0500 |
commit | fbc61291d7da41ec19f339311297f59213165227 (patch) | |
tree | 57d695fa21a87bcb9cb41fd80780d1065daa1b28 /drivers/md/dm-zoned-target.c | |
parent | 98d82f48f1983ceef5c8d2f6c87bfee2918790ee (diff) | |
download | linux-fbc61291d7da41ec19f339311297f59213165227.tar.gz linux-fbc61291d7da41ec19f339311297f59213165227.tar.bz2 linux-fbc61291d7da41ec19f339311297f59213165227.zip |
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>
Diffstat (limited to 'drivers/md/dm-zoned-target.c')
0 files changed, 0 insertions, 0 deletions