]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: return 'err' if set MPI_DEINIT state fails
authorYueHaibing <yuehaibing@huawei.com>
Sat, 24 Nov 2018 10:16:41 +0000 (18:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:23:37 +0000 (15:23 -0800)
commit103fa65f9193d7078e693f8121fae9bc0515bbd7
tree12a3901cb955aee92638cc589c503bf92e51b84f
parent11d8f672d2124485ddc7e984bbd7c744cc2bab0e
net: aquantia: return 'err' if set MPI_DEINIT state fails

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:260:7:
 warning: variable 'err' set but not used [-Wunused-but-set-variable]

'err' should be returned while set MPI_DEINIT state fails
in hw_atl_utils_soft_reset.

Fixes: 7413d7a0ef95 ("net: aquantia: Regression on reset with 1.x firmware")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c