diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-16 11:25:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 06:15:04 +0100 |
commit | 098aafaa68b35c857f1ae9bc17f8e8b195a02e65 (patch) | |
tree | ed792c38293134cd06b649e546a947356160adc1 /drivers/net/ethernet/aquantia | |
parent | Merge branch 'ncsi-Allow-enabling-multiple-packages-and-channels' (diff) | |
download | linux-098aafaa68b35c857f1ae9bc17f8e8b195a02e65.tar.xz linux-098aafaa68b35c857f1ae9bc17f8e8b195a02e65.zip |
net: aquantia: cleanup err handing in hw_atl_utils_fw_rpc_wait
'err' always be 0 in the two places.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c index 7def1cb8ab9d..1af6606a9166 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c @@ -454,8 +454,6 @@ int hw_atl_utils_fw_rpc_wait(struct aq_hw_s *self, (fw.val = aq_hw_read_reg(self, HW_ATL_RPC_STATE_ADR), fw.tid), 1000U, 100U); - if (err < 0) - goto err_exit; if (fw.len == 0xFFFFU) { err = hw_atl_utils_fw_rpc_call(self, sw.len); @@ -463,8 +461,6 @@ int hw_atl_utils_fw_rpc_wait(struct aq_hw_s *self, goto err_exit; } } while (sw.tid != fw.tid || 0xFFFFU == fw.len); - if (err < 0) - goto err_exit; if (rpc) { if (fw.len) { |