diff options
author | 2021-08-17 20:11:06 +0800 | |
---|---|---|
committer | 2021-08-18 15:16:54 -0700 | |
commit | 19b8ece42c56aaa122f7e91eb391bb3dd7e193cd (patch) | |
tree | d2ee5a8fd748598833a44200783b1ed36a877b1b /drivers/net/ethernet/renesas/ravb_main.c | |
parent | pktgen: Remove fill_imix_distribution() CONFIG_XFRM dependency (diff) | |
download | linux-dev-19b8ece42c56aaa122f7e91eb391bb3dd7e193cd.tar.xz linux-dev-19b8ece42c56aaa122f7e91eb391bb3dd7e193cd.zip |
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: Jason Wang <wangborong@cdjrlc.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20210817121106.44189-1-wangborong@cdjrlc.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb_main.c')
0 files changed, 0 insertions, 0 deletions