Skip to content
Commit 19b8ece4 authored by Jason Wang's avatar Jason Wang Committed by Jakub Kicinski
Browse files

net/mlx4: Use ARRAY_SIZE to get an array's size



The ARRAY_SIZE macro is defined to get an array's size which is
more compact and more formal in linux source. Thus, we can replace
the long sizeof(arr)/sizeof(arr[0]) with the compact ARRAY_SIZE.

Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20210817121106.44189-1-wangborong@cdjrlc.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7e5a3ef6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment