OSDN Git Service

igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr
authorKevin Lo <kevlo@kevlo.org>
Sun, 20 Dec 2020 14:18:19 +0000 (22:18 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 1 Feb 2021 18:04:43 +0000 (10:04 -0800)
commitebc8d125062e7dccb7922b2190b097c20d88ad96
tree79a6ca310078283eb4052672d54f922e341cace2
parent2e99dedc73f004f650b197c9b269c15c7e01ad15
igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr

This patch sets the default return value to -IGC_ERR_NVM in
igc_write_nvm_srwr. Without this change it wouldn't lead to a shadow RAM
write EEWR timeout.

Fixes: ab4056126813 ("igc: Add NVM support")
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_i225.c