net/ice/base: use macro to get variable size array length
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 20 Oct 2020 01:33:53 +0000 (09:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:03 +0000 (23:35 +0100)
commitb2176f760b1a9d8751aa6124ade4156473eee100
tree56d0b0d0a4a5eedc3347d1b4634a4f688c1f42f7
parentfd1173d75c23bef5a8835bec99fbbb1414ea7480
net/ice/base: use macro to get variable size array length

Use the FLEX_ARRAY_SIZE() helper with the recently added flexible array
members in structures.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_type.h