Commit 2cbece60 authored by Zhang Zekun's avatar Zhang Zekun Committed by Jakub Kicinski
Browse files

net: hns3: Use ARRAY_SIZE() to improve readability



There is a helper function ARRAY_SIZE() to help calculating the
u32 array size, and we don't need to do it mannually. So, let's
use ARRAY_SIZE() to calculate the array size, and improve the code
readability.

Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: default avatarJijie <Shao&lt;shaojijie@huawei.com>
Link: https://patch.msgid.link/20240818052518.45489-1-zhangzekun11@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 555e5531
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment