net/ice/base: use macro instead of magic 8
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:17:54 +0000 (23:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commit8da44609791ebc3cfa8b3853856f2bed18fefc65
tree94d4944554141463f4474f8880f42514c7981bdf
parent6c0befff8d16ddffa03ad08d13d288f3e7dedbc5
net/ice/base: use macro instead of magic 8

Replace the use of the magic number 8 by BITS_PER_BYTE when calculating
the number of bits from the number of bytes.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_flow.c