ice: don't ignore return codes in VSI related code
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 13 Feb 2023 11:27:33 +0000 (12:27 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 7 Mar 2023 21:02:01 +0000 (13:02 -0800)
commitc4a9c8e78aad0fd9b79c9b1e83bab3288a15ce3c
tree92758ab05e3aaaa3d26fbd3a6ca214bfedb70313
parentfef3f92e8a4214652d8f33f50330dc5a92efbf11
ice: don't ignore return codes in VSI related code

There were few smatch warnings reported by Dan:
- ice_vsi_cfg_xdp_txqs can return 0 instead of ret, which is cleaner
- return values in ice_vsi_cfg_def were ignored
- in ice_vsi_rebuild return value was ignored in case rebuild failed,
  it was a never reached code, however, rewrite it for clarity.
- ice_vsi_cfg_tc can return 0 instead of ret

Fixes: 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c