diff options
author | Dan Carpenter | 2019-09-25 13:57:14 +0300 |
---|---|---|
committer | David S. Miller | 2019-09-27 10:03:41 +0200 |
commit | ced81eb84d6ab0a993ff79c04cc0238d44415af4 (patch) | |
tree | 896e442d36b77f448af427a2bbccc64978063b45 /drivers/net/ethernet/socionext | |
parent | bd55f8ddbc437c225391ca8f487e7ec10243c4cc (diff) |
enetc: Fix a signedness bug in enetc_of_get_phy()
The "priv->if_mode" is type phy_interface_t which is an enum. In this
context GCC will treat the enum as an unsigned int so this error
handling is never triggered.
Fixes: d4fd0404c1c9 ("enetc: Introduce basic PF and VF ENETC ethernet drivers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext')
0 files changed, 0 insertions, 0 deletions