Skip to content
Commit 9ed94117 authored by Guo Zhengkui's avatar Guo Zhengkui Committed by David S. Miller
Browse files

hinic: use ARRAY_SIZE instead of ARRAY_LEN



ARRAY_SIZE defined in <linux/kernel.h> is safer than self-defined
macros to get size of an array such as ARRAY_LEN used here. Because
ARRAY_SIZE uses __must_be_array(arr) to ensure arr is really an array.

Reported-by: default avatarAlejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 16b1c4e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment