linux/drivers/infiniband
Jérémy Lefaure e980b44134 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>
2017-10-18 12:16:14 -04:00
..
core IB/core: Fix use workqueue without WQ_MEM_RECLAIM 2017-10-18 12:10:36 -04:00
hw IB/mlx5: Use ARRAY_SIZE 2017-10-18 12:16:14 -04:00
sw IB/rxe: Handle NETDEV_CHANGE events 2017-08-28 19:12:36 -04:00
ulp IB/ipoib: Add ability to set PKEY index to lower device driver 2017-10-14 11:22:08 -07:00
Kconfig IB/core: Expose ioctl interface through experimental Kconfig 2017-08-31 08:35:14 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00