diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-16 07:45:17 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-18 18:16:14 +0200 |
commit | e980b44134c89afb65176e70aaf293d608002e83 (patch) | |
tree | 644a64b104e9cfdbc4cf7d80cd756cf36d454a13 /drivers/infiniband/hw/qedr/verbs.h | |
parent | IB/core: Fix calculation of maximum RoCE MTU (diff) | |
download | linux-e980b44134c89afb65176e70aaf293d608002e83.tar.xz linux-e980b44134c89afb65176e70aaf293d608002e83.zip |
IB/mlx5: 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: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/verbs.h')
0 files changed, 0 insertions, 0 deletions