net/ice/base: refactor zeroing bitmap size
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:38 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commitdfbb0b98d46cd111aa9befe06597ace96f2a94ce
treeec99b08abf4aaf2b88a5242a61a3a5659ea30a0e
parenta5e60297bb01a438eddf9a18fb09774523b56f6e
net/ice/base: refactor zeroing bitmap size

A couple of places in the code use a 'sizeof(bitmap) * BITS_PER_BYTE'
construction to calculate the size of the bitmap when calling
ice_zero_bitmap. Instead of doing this, just use the same value as in
the ice_declare_bitmap declaration.

Signed-off-by: Jacob Keller <jacob.e.keller@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: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_sched.c