diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-08 02:08:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 09:14:11 +0100 |
commit | 9f49ba339b3af5b0a833178b2529c6b9873f7e6f (patch) | |
tree | fc784c0834d03184257fa21a5d51228187271240 /mm/slab_common.c | |
parent | 1939580da1f592c7ba8122b02c6d6532ed64452e (diff) |
net: bcmgenet: return correct value 'ret' from bcmgenet_power_down
[ Upstream commit 0db55093b56618088b9a1d445eb6e43b311bea33 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions