]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hinic3: Use array_size instead of multiplying
authorFan Gong <gongfan1@huawei.com>
Thu, 29 Jan 2026 04:01:10 +0000 (12:01 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Jan 2026 02:50:07 +0000 (18:50 -0800)
commitafb81efc971ec88e51a32689ed422615ad1e852c
tree25e2ad114ac460d6497e994a45da1cd7c4c416e0
parent34bef6a4960f7761bcf8bb8ef8cd6d0041ae0c69
hinic3: Use array_size instead of multiplying

Since commit 17fcb3dc12bb ("hinic3: module initialization and tx/rx logic")
use "size * sizeof(u64)" in hinic3_feature_nego.
Use array_size instead of multiplying can make it clearer.

Link: https://lore.kernel.org/netdev/20250911123120.GG30363@horms.kernel.org/
Co-developed-by: Zhu Yikai <zhuyikai1@h-partners.com>
Signed-off-by: Zhu Yikai <zhuyikai1@h-partners.com>
Signed-off-by: Fan Gong <gongfan1@huawei.com>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/b7d6d384ccc0bd4c0d3e7af1f90901d589cbd0b1.1769656467.git.zhuyikai1@h-partners.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic3/hinic3_nic_cfg.c