diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-01 21:30:48 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-11-13 21:09:58 +0100 |
commit | 296200d3bb649f9646f60abe6e8ebb9fd8d20f4b (patch) | |
tree | d47aaf3f3608f15a4d2f747e3bf13d82b7d5454d /fs/orangefs/super.c | |
parent | orangefs: remove initialization of i_version (diff) | |
download | linux-296200d3bb649f9646f60abe6e8ebb9fd8d20f4b.tar.xz linux-296200d3bb649f9646f60abe6e8ebb9fd8d20f4b.zip |
orangefs: 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 Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/super.c')
0 files changed, 0 insertions, 0 deletions