be2net: use ARRAY_SIZE for array sizing calculation on array cmd_priv_map
authorColin Ian King <colin.king@canonical.com>
Sun, 7 Jan 2018 23:45:08 +0000 (23:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 16:40:18 +0000 (11:40 -0500)
commit2b1eaa66352ac453b44451c230d8edd6c5a5ea80
tree85cc29bb170aa22a96ce2b172e5acea6b57cc4d1
parentfaa9b39f0e9ddfa8c83725b3f230784976dd3c7f
be2net: use ARRAY_SIZE for array sizing calculation on array cmd_priv_map

Use the ARRAY_SIZE macro on array cmd_priv_map to determine size of the
array.  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/ethernet/emulex/benet/be_cmds.c