net/usb/kalmia: use ARRAY_SIZE for various array sizing calculations
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Mar 2018 13:42:39 +0000 (13:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Mar 2018 15:01:04 +0000 (10:01 -0500)
commitb72c8a7e2ca8c4c085c76d17005241eca2edf93a
treed452a1da68c2442d8682c88bc07b5dd94570fa9d
parent3c34cb9defb0d454be20287c1c7c7417ebce7bb3
net/usb/kalmia: use ARRAY_SIZE for various array sizing calculations

Use the ARRAY_SIZE macro on a couple of arrays to determine
size of the arrays. Also fix up alignment to clean up a checkpatch
warning. Improvement suggested by Coccinelle.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kalmia.c