]> git.baikalelectronics.ru Git - kernel.git/commit
ice: cleanup vf_id signedness
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 8 May 2020 00:41:06 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 May 2020 05:10:04 +0000 (22:10 -0700)
commit72deccb38f175263be67c08056373224247b109e
treea4d057d2791a3b1cf977696dcd6aba461f964bd5
parent578c403db9154a95e2565514283f2577a29fcd30
ice: cleanup vf_id signedness

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>
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