ice: Use int for ice_status
To prepare for removal of ice_status, change the variables from ice_status to int. This eases the transition when values are changed to return standard int error codes over enum ice_status. Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com>
This commit is contained in:
@@ -39,7 +39,7 @@ static void ice_info_get_dsn(struct ice_pf *pf, struct ice_info_ctx *ctx)
|
||||
static void ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx)
|
||||
{
|
||||
struct ice_hw *hw = &pf->hw;
|
||||
enum ice_status status;
|
||||
int status;
|
||||
|
||||
status = ice_read_pba_string(hw, (u8 *)ctx->buf, sizeof(ctx->buf));
|
||||
if (status)
|
||||
@@ -251,7 +251,7 @@ static int ice_devlink_info_get(struct devlink *devlink,
|
||||
struct device *dev = ice_pf_to_dev(pf);
|
||||
struct ice_hw *hw = &pf->hw;
|
||||
struct ice_info_ctx *ctx;
|
||||
enum ice_status status;
|
||||
int status;
|
||||
size_t i;
|
||||
int err;
|
||||
|
||||
@@ -762,7 +762,7 @@ static int ice_devlink_nvm_snapshot(struct devlink *devlink,
|
||||
struct ice_pf *pf = devlink_priv(devlink);
|
||||
struct device *dev = ice_pf_to_dev(pf);
|
||||
struct ice_hw *hw = &pf->hw;
|
||||
enum ice_status status;
|
||||
int status;
|
||||
void *nvm_data;
|
||||
u32 nvm_size;
|
||||
|
||||
@@ -819,7 +819,7 @@ ice_devlink_devcaps_snapshot(struct devlink *devlink,
|
||||
struct ice_pf *pf = devlink_priv(devlink);
|
||||
struct device *dev = ice_pf_to_dev(pf);
|
||||
struct ice_hw *hw = &pf->hw;
|
||||
enum ice_status status;
|
||||
int status;
|
||||
void *devcaps;
|
||||
|
||||
devcaps = vzalloc(ICE_AQ_MAX_BUF_LEN);
|
||||
|
||||
Reference in New Issue
Block a user