ice: cleanup vf_id signedness
commit770784c0f81342f10ecb074058065132c5a205c4
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 8 May 2020 00:41:06 +0000 (7 17:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:32:46 +0000 (22 09:32 +0200)
tree0d5f6df118ef1e096b658779ed8cfae104cb2ea0
parentae4d69f48a457c96c0ea155c36b91e7c0e9342ac
ice: cleanup vf_id signedness

[ Upstream commit 53bb66983f34d4ff0af179fe228e2c55e1e45921 ]

The vf_id variable is dealt with in the code in inconsistent
ways of sign usage, preventing compilation with -Werror=sign-compare.
Fix this problem in the code by always treating vf_id as unsigned, since
there are no valid values of vf_id that are negative.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h