]> git.baikalelectronics.ru Git - kernel.git/commit
net:usb: Use ARRAY_SIZE instead of calculating the array size
authorzhong jiang <zhongjiang@huawei.com>
Fri, 3 Aug 2018 06:53:14 +0000 (14:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2018 20:23:15 +0000 (13:23 -0700)
commit643502f9c4815379a21a05fe6b7d4a3f5466fdd3
tree3404c313fa03e4b5b31789e170a6883984d33dd6
parent6b278577db138ad2cb2acd405c5ab27997f7d199
net:usb: Use ARRAY_SIZE instead of calculating the array size

We use ARRAY_SIZE to replace open code sizeof(lan78xx_regs) / sizeof(u32).
It make the code concise.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c