net/ice/base: fix type-mismatch
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:14 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit807331f3efdafa925bc0f2510cebc9f2ea87e829
tree9b5f72b37a3da9e189aec41eb634f19382a3ce67
parenta823afa55ff40b9b1d7792d9a5763195ef938396
net/ice/base: fix type-mismatch

The iterators are u8, but the values being compared against are u16s.
It may not ever be the case that the comparison is against a value
larger than the upper bound of the smaller type, but code analysis tools
don't know that.

Fixes: 93e84b1bfc92 ("net/ice/base: add basic Tx scheduler")
Cc: stable@dpdk.org
Signed-off-by: Jeb Cramer <jeb.j.cramer@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_sched.c