i40e: rename variable to prevent clash of understanding

This code returns something that becomes the errno value from ethtool and
passes around a pointer to an errno variable.  This patch changes the name
slightly to differentiate it from the actual user errno variable.

Change-ID: Idaa37845c069e66f4cea072e90f471bb2142454d
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Shannon Nelson 2015-07-23 16:54:33 -04:00 committed by Jeff Kirsher
parent a2f23e08b0
commit 79afe839ab
1 changed files with 57 additions and 57 deletions

View File

@ -592,25 +592,25 @@ i40e_validate_nvm_checksum_exit:
static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno); u8 *bytes, int *perrno);
static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno); u8 *bytes, int *perrno);
static i40e_status i40e_nvmupd_state_writing(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_writing(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno); u8 *bytes, int *errno);
static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw, static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
int *errno); int *perrno);
static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
int *errno); int *perrno);
static i40e_status i40e_nvmupd_nvm_write(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_write(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno); u8 *bytes, int *perrno);
static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno); u8 *bytes, int *perrno);
static inline u8 i40e_nvmupd_get_module(u32 val) static inline u8 i40e_nvmupd_get_module(u32 val)
{ {
return (u8)(val & I40E_NVM_MOD_PNT_MASK); return (u8)(val & I40E_NVM_MOD_PNT_MASK);
@ -641,30 +641,30 @@ static char *i40e_nvm_update_state_str[] = {
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command * @cmd: pointer to nvm update command
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* Dispatches command depending on what update state is current * Dispatches command depending on what update state is current
**/ **/
i40e_status i40e_nvmupd_command(struct i40e_hw *hw, i40e_status i40e_nvmupd_command(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status; i40e_status status;
/* assume success */ /* assume success */
*errno = 0; *perrno = 0;
switch (hw->nvmupd_state) { switch (hw->nvmupd_state) {
case I40E_NVMUPD_STATE_INIT: case I40E_NVMUPD_STATE_INIT:
status = i40e_nvmupd_state_init(hw, cmd, bytes, errno); status = i40e_nvmupd_state_init(hw, cmd, bytes, perrno);
break; break;
case I40E_NVMUPD_STATE_READING: case I40E_NVMUPD_STATE_READING:
status = i40e_nvmupd_state_reading(hw, cmd, bytes, errno); status = i40e_nvmupd_state_reading(hw, cmd, bytes, perrno);
break; break;
case I40E_NVMUPD_STATE_WRITING: case I40E_NVMUPD_STATE_WRITING:
status = i40e_nvmupd_state_writing(hw, cmd, bytes, errno); status = i40e_nvmupd_state_writing(hw, cmd, bytes, perrno);
break; break;
default: default:
@ -672,7 +672,7 @@ i40e_status i40e_nvmupd_command(struct i40e_hw *hw,
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"NVMUPD: no such state %d\n", hw->nvmupd_state); "NVMUPD: no such state %d\n", hw->nvmupd_state);
status = I40E_NOT_SUPPORTED; status = I40E_NOT_SUPPORTED;
*errno = -ESRCH; *perrno = -ESRCH;
break; break;
} }
return status; return status;
@ -683,28 +683,28 @@ i40e_status i40e_nvmupd_command(struct i40e_hw *hw,
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* Process legitimate commands of the Init state and conditionally set next * Process legitimate commands of the Init state and conditionally set next
* state. Reject all other commands. * state. Reject all other commands.
**/ **/
static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status = 0; i40e_status status = 0;
enum i40e_nvmupd_cmd upd_cmd; enum i40e_nvmupd_cmd upd_cmd;
upd_cmd = i40e_nvmupd_validate_command(hw, cmd, errno); upd_cmd = i40e_nvmupd_validate_command(hw, cmd, perrno);
switch (upd_cmd) { switch (upd_cmd) {
case I40E_NVMUPD_READ_SA: case I40E_NVMUPD_READ_SA:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_READ); status = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_nvmupd_nvm_read(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_read(hw, cmd, bytes, perrno);
i40e_release_nvm(hw); i40e_release_nvm(hw);
} }
break; break;
@ -712,10 +712,10 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
case I40E_NVMUPD_READ_SNT: case I40E_NVMUPD_READ_SNT:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_READ); status = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_nvmupd_nvm_read(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_read(hw, cmd, bytes, perrno);
if (status) if (status)
i40e_release_nvm(hw); i40e_release_nvm(hw);
else else
@ -726,10 +726,10 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
case I40E_NVMUPD_WRITE_ERA: case I40E_NVMUPD_WRITE_ERA:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE); status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_nvmupd_nvm_erase(hw, cmd, errno); status = i40e_nvmupd_nvm_erase(hw, cmd, perrno);
if (status) if (status)
i40e_release_nvm(hw); i40e_release_nvm(hw);
else else
@ -740,10 +740,10 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
case I40E_NVMUPD_WRITE_SA: case I40E_NVMUPD_WRITE_SA:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE); status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_nvmupd_nvm_write(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_write(hw, cmd, bytes, perrno);
if (status) if (status)
i40e_release_nvm(hw); i40e_release_nvm(hw);
else else
@ -754,10 +754,10 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
case I40E_NVMUPD_WRITE_SNT: case I40E_NVMUPD_WRITE_SNT:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE); status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_nvmupd_nvm_write(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_write(hw, cmd, bytes, perrno);
if (status) if (status)
i40e_release_nvm(hw); i40e_release_nvm(hw);
else else
@ -768,12 +768,12 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
case I40E_NVMUPD_CSUM_SA: case I40E_NVMUPD_CSUM_SA:
status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE); status = i40e_acquire_nvm(hw, I40E_RESOURCE_WRITE);
if (status) { if (status) {
*errno = i40e_aq_rc_to_posix(status, *perrno = i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status); hw->aq.asq_last_status);
} else { } else {
status = i40e_update_nvm_checksum(hw); status = i40e_update_nvm_checksum(hw);
if (status) { if (status) {
*errno = hw->aq.asq_last_status ? *perrno = hw->aq.asq_last_status ?
i40e_aq_rc_to_posix(status, i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status) : hw->aq.asq_last_status) :
-EIO; -EIO;
@ -789,7 +789,7 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
"NVMUPD: bad cmd %s in init state\n", "NVMUPD: bad cmd %s in init state\n",
i40e_nvm_update_state_str[upd_cmd]); i40e_nvm_update_state_str[upd_cmd]);
status = I40E_ERR_NVM; status = I40E_ERR_NVM;
*errno = -ESRCH; *perrno = -ESRCH;
break; break;
} }
return status; return status;
@ -800,28 +800,28 @@ static i40e_status i40e_nvmupd_state_init(struct i40e_hw *hw,
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* NVM ownership is already held. Process legitimate commands and set any * NVM ownership is already held. Process legitimate commands and set any
* change in state; reject all other commands. * change in state; reject all other commands.
**/ **/
static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status; i40e_status status;
enum i40e_nvmupd_cmd upd_cmd; enum i40e_nvmupd_cmd upd_cmd;
upd_cmd = i40e_nvmupd_validate_command(hw, cmd, errno); upd_cmd = i40e_nvmupd_validate_command(hw, cmd, perrno);
switch (upd_cmd) { switch (upd_cmd) {
case I40E_NVMUPD_READ_SA: case I40E_NVMUPD_READ_SA:
case I40E_NVMUPD_READ_CON: case I40E_NVMUPD_READ_CON:
status = i40e_nvmupd_nvm_read(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_read(hw, cmd, bytes, perrno);
break; break;
case I40E_NVMUPD_READ_LCB: case I40E_NVMUPD_READ_LCB:
status = i40e_nvmupd_nvm_read(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_read(hw, cmd, bytes, perrno);
i40e_release_nvm(hw); i40e_release_nvm(hw);
hw->nvmupd_state = I40E_NVMUPD_STATE_INIT; hw->nvmupd_state = I40E_NVMUPD_STATE_INIT;
break; break;
@ -831,7 +831,7 @@ static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw,
"NVMUPD: bad cmd %s in reading state.\n", "NVMUPD: bad cmd %s in reading state.\n",
i40e_nvm_update_state_str[upd_cmd]); i40e_nvm_update_state_str[upd_cmd]);
status = I40E_NOT_SUPPORTED; status = I40E_NOT_SUPPORTED;
*errno = -ESRCH; *perrno = -ESRCH;
break; break;
} }
return status; return status;
@ -842,29 +842,29 @@ static i40e_status i40e_nvmupd_state_reading(struct i40e_hw *hw,
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* NVM ownership is already held. Process legitimate commands and set any * NVM ownership is already held. Process legitimate commands and set any
* change in state; reject all other commands * change in state; reject all other commands
**/ **/
static i40e_status i40e_nvmupd_state_writing(struct i40e_hw *hw, static i40e_status i40e_nvmupd_state_writing(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status; i40e_status status;
enum i40e_nvmupd_cmd upd_cmd; enum i40e_nvmupd_cmd upd_cmd;
bool retry_attempt = false; bool retry_attempt = false;
upd_cmd = i40e_nvmupd_validate_command(hw, cmd, errno); upd_cmd = i40e_nvmupd_validate_command(hw, cmd, perrno);
retry: retry:
switch (upd_cmd) { switch (upd_cmd) {
case I40E_NVMUPD_WRITE_CON: case I40E_NVMUPD_WRITE_CON:
status = i40e_nvmupd_nvm_write(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_write(hw, cmd, bytes, perrno);
break; break;
case I40E_NVMUPD_WRITE_LCB: case I40E_NVMUPD_WRITE_LCB:
status = i40e_nvmupd_nvm_write(hw, cmd, bytes, errno); status = i40e_nvmupd_nvm_write(hw, cmd, bytes, perrno);
if (!status) if (!status)
hw->aq.nvm_release_on_done = true; hw->aq.nvm_release_on_done = true;
hw->nvmupd_state = I40E_NVMUPD_STATE_INIT; hw->nvmupd_state = I40E_NVMUPD_STATE_INIT;
@ -873,7 +873,7 @@ retry:
case I40E_NVMUPD_CSUM_CON: case I40E_NVMUPD_CSUM_CON:
status = i40e_update_nvm_checksum(hw); status = i40e_update_nvm_checksum(hw);
if (status) { if (status) {
*errno = hw->aq.asq_last_status ? *perrno = hw->aq.asq_last_status ?
i40e_aq_rc_to_posix(status, i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status) : hw->aq.asq_last_status) :
-EIO; -EIO;
@ -884,7 +884,7 @@ retry:
case I40E_NVMUPD_CSUM_LCB: case I40E_NVMUPD_CSUM_LCB:
status = i40e_update_nvm_checksum(hw); status = i40e_update_nvm_checksum(hw);
if (status) if (status)
*errno = hw->aq.asq_last_status ? *perrno = hw->aq.asq_last_status ?
i40e_aq_rc_to_posix(status, i40e_aq_rc_to_posix(status,
hw->aq.asq_last_status) : hw->aq.asq_last_status) :
-EIO; -EIO;
@ -898,7 +898,7 @@ retry:
"NVMUPD: bad cmd %s in writing state.\n", "NVMUPD: bad cmd %s in writing state.\n",
i40e_nvm_update_state_str[upd_cmd]); i40e_nvm_update_state_str[upd_cmd]);
status = I40E_NOT_SUPPORTED; status = I40E_NOT_SUPPORTED;
*errno = -ESRCH; *perrno = -ESRCH;
break; break;
} }
@ -941,13 +941,13 @@ retry:
* i40e_nvmupd_validate_command - Validate given command * i40e_nvmupd_validate_command - Validate given command
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* Return one of the valid command types or I40E_NVMUPD_INVALID * Return one of the valid command types or I40E_NVMUPD_INVALID
**/ **/
static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw, static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
int *errno) int *perrno)
{ {
enum i40e_nvmupd_cmd upd_cmd; enum i40e_nvmupd_cmd upd_cmd;
u8 transaction; u8 transaction;
@ -963,7 +963,7 @@ static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw,
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"i40e_nvmupd_validate_command data_size %d\n", "i40e_nvmupd_validate_command data_size %d\n",
cmd->data_size); cmd->data_size);
*errno = -EFAULT; *perrno = -EFAULT;
return I40E_NVMUPD_INVALID; return I40E_NVMUPD_INVALID;
} }
@ -1020,10 +1020,10 @@ static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw,
hw->aq.nvm_release_on_done); hw->aq.nvm_release_on_done);
if (upd_cmd == I40E_NVMUPD_INVALID) { if (upd_cmd == I40E_NVMUPD_INVALID) {
*errno = -EFAULT; *perrno = -EFAULT;
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"i40e_nvmupd_validate_command returns %d errno %d\n", "i40e_nvmupd_validate_command returns %d errno %d\n",
upd_cmd, *errno); upd_cmd, *perrno);
} }
return upd_cmd; return upd_cmd;
} }
@ -1033,13 +1033,13 @@ static enum i40e_nvmupd_cmd i40e_nvmupd_validate_command(struct i40e_hw *hw,
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* cmd structure contains identifiers and data buffer * cmd structure contains identifiers and data buffer
**/ **/
static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status; i40e_status status;
u8 module, transaction; u8 module, transaction;
@ -1058,7 +1058,7 @@ static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw,
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"i40e_nvmupd_nvm_read status %d aq %d\n", "i40e_nvmupd_nvm_read status %d aq %d\n",
status, hw->aq.asq_last_status); status, hw->aq.asq_last_status);
*errno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status); *perrno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status);
} }
return status; return status;
@ -1068,13 +1068,13 @@ static i40e_status i40e_nvmupd_nvm_read(struct i40e_hw *hw,
* i40e_nvmupd_nvm_erase - Erase an NVM module * i40e_nvmupd_nvm_erase - Erase an NVM module
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* module, offset, data_size and data are in cmd structure * module, offset, data_size and data are in cmd structure
**/ **/
static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
int *errno) int *perrno)
{ {
i40e_status status = 0; i40e_status status = 0;
u8 module, transaction; u8 module, transaction;
@ -1092,7 +1092,7 @@ static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw,
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"i40e_nvmupd_nvm_erase status %d aq %d\n", "i40e_nvmupd_nvm_erase status %d aq %d\n",
status, hw->aq.asq_last_status); status, hw->aq.asq_last_status);
*errno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status); *perrno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status);
} }
return status; return status;
@ -1103,13 +1103,13 @@ static i40e_status i40e_nvmupd_nvm_erase(struct i40e_hw *hw,
* @hw: pointer to hardware structure * @hw: pointer to hardware structure
* @cmd: pointer to nvm update command buffer * @cmd: pointer to nvm update command buffer
* @bytes: pointer to the data buffer * @bytes: pointer to the data buffer
* @errno: pointer to return error code * @perrno: pointer to return error code
* *
* module, offset, data_size and data are in cmd structure * module, offset, data_size and data are in cmd structure
**/ **/
static i40e_status i40e_nvmupd_nvm_write(struct i40e_hw *hw, static i40e_status i40e_nvmupd_nvm_write(struct i40e_hw *hw,
struct i40e_nvm_access *cmd, struct i40e_nvm_access *cmd,
u8 *bytes, int *errno) u8 *bytes, int *perrno)
{ {
i40e_status status = 0; i40e_status status = 0;
u8 module, transaction; u8 module, transaction;
@ -1128,7 +1128,7 @@ static i40e_status i40e_nvmupd_nvm_write(struct i40e_hw *hw,
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"i40e_nvmupd_nvm_write status %d aq %d\n", "i40e_nvmupd_nvm_write status %d aq %d\n",
status, hw->aq.asq_last_status); status, hw->aq.asq_last_status);
*errno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status); *perrno = i40e_aq_rc_to_posix(status, hw->aq.asq_last_status);
} }
return status; return status;