net: bcmgenet: return correct value 'ret' from bcmgenet_power_down
authorYueHaibing <yuehaibing@huawei.com>
Thu, 8 Nov 2018 02:08:43 +0000 (02:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 00:21:41 +0000 (16:21 -0800)
commit0db55093b56618088b9a1d445eb6e43b311bea33
tree296a564fee0c3e127a7a1a8355a9cbd49011f4e7
parent3ed3857011cf249e9e1e36abc77afd2e97de5994
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c