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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:13 +0000 (09:29 +0100)
commit0cda160418583c066a17a2881babd3522c08e859
treef0c8d4e6e29054a7423963556c8737601b1d2db4
parent8e081627f3a7f733a4955ee40b385c972f010f05
igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr

[ Upstream commit ebc8d125062e7dccb7922b2190b097c20d88ad96 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igc/igc_i225.c