diff options
author | jbrunet <jbrunet@baylibre.com> | 2016-12-19 15:05:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-05 12:40:19 (GMT) |
commit | 40373d91a0f764c8ba5c56ea3dc88896faa4510d (patch) | |
tree | 504ea1ac79839727c234bbeabcf182947d022cfd /scripts | |
parent | 752ba680eb70ebc1e235b2ac1087ce471e2c800d (diff) | |
download | linux-40373d91a0f764c8ba5c56ea3dc88896faa4510d.tar.xz |
net: phy: fix sign type error in genphy_config_eee_advert
[ Upstream commit 3bb9ab63276696988d8224f52db20e87194deb4b ]
In genphy_config_eee_advert, the return value of phy_read_mmd_indirect is
checked to know if the register could be accessed but the result is
assigned to a 'u32'.
Changing to 'int' to correctly get errors from phy_read_mmd_indirect.
Fixes: d853d145ea3e ("net: phy: add an option to disable EEE advertisement")
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions