diff options
author | Zhang Zekun <zhangzekun11@huawei.com> | 2024-08-18 13:25:18 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-20 15:18:21 -0700 |
commit | 2cbece60a4af03803634abd1e840e513db48d42e (patch) | |
tree | 4e8c82ca53d303545061e34fdbae1b49fc4af5fc /net/unix/af_unix.c | |
parent | 555e5531635a7c5dba663d06cea240362624dfde (diff) | |
download | linux-2cbece60a4af03803634abd1e840e513db48d42e.tar.gz linux-2cbece60a4af03803634abd1e840e513db48d42e.tar.bz2 linux-2cbece60a4af03803634abd1e840e513db48d42e.zip |
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: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Jijie Shao<shaojijie@huawei.com>
Link: https://patch.msgid.link/20240818052518.45489-1-zhangzekun11@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions