diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-08 02:08:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 16:21:41 -0800 |
commit | 0db55093b56618088b9a1d445eb6e43b311bea33 (patch) | |
tree | 296a564fee0c3e127a7a1a8355a9cbd49011f4e7 /drivers/net/ethernet/broadcom | |
parent | 3ed3857011cf249e9e1e36abc77afd2e97de5994 (diff) | |
download | linux-0db55093b56618088b9a1d445eb6e43b311bea33.tar.bz2 |
net: bcmgenet: return correct value 'ret' from bcmgenet_power_down
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/broadcom/genet/bcmgenet.c: In function 'bcmgenet_power_down':
drivers/net/ethernet/broadcom/genet/bcmgenet.c:1136:6: warning:
variable 'ret' set but not used [-Wunused-but-set-variable]
bcmgenet_power_down should return 'ret' instead of 0.
Fixes: ca8cf341903f ("net: bcmgenet: propagate errors from bcmgenet_power_down")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index 2d6f090bf644..bf88749505a9 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -1169,7 +1169,7 @@ static int bcmgenet_power_down(struct bcmgenet_priv *priv, break; } - return 0; + return ret; } static void bcmgenet_power_up(struct bcmgenet_priv *priv, |