]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea0b3c9dfb598dfd1d0057d6abdad491a5d819ac
tree79a6ca310078283eb4052672d54f922e341cace2
parent5c95ca184e336a0d47134f09ab14e611bf022193
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: d6c58def7f21 ("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