ixgbe: use ARRAY_SIZE for array sizing calculation on array buf
authorColin Ian King <colin.king@canonical.com>
Sun, 7 Jan 2018 23:17:51 +0000 (23:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jan 2018 18:25:19 +0000 (10:25 -0800)
commitf0e49dc3f9bca8c3e73729cfc88dff13bcc9bd11
tree157aa00977ee599a10b0d517fb0712f4da4f81ac
parent4078ea37563383925075d30a4be68d97b552efcb
ixgbe: use ARRAY_SIZE for array sizing calculation on array buf

Use the ARRAY_SIZE macro on array buf to determine size of the array.
Improvement suggested by coccinelle.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c