• Tony Nguyen's avatar
    ice: Change ice_vsi_realloc_stat_arrays() to void · d8a23ff6
    Tony Nguyen authored
    smatch reports:
    
    smatch warnings:
    drivers/net/ethernet/intel/ice/ice_lib.c:3612 ice_vsi_rebuild() warn: missing error code 'ret'
    
    If an error is encountered for ice_vsi_realloc_stat_arrays(), ret is not
    assigned an error value so the goto error path would return success. The
    function, however, only returns 0 so an error will never be reported; due
    to this, change the function to return void.
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
    d8a23ff6
ice_lib.c 112 KB