stmmac: platform: Fix signedness bug in stmmac_probe_config_dt()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 7 Jul 2021 07:53:35 +0000 (15:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2021 20:43:50 +0000 (13:43 -0700)
commiteca81f09145d765c21dd8fb1ba5d874ca255c32c
tree1d9f62a9c7a47c19ac5c2ce5a4a50f191f4157b9
parent0d472c69c6a5e22cef9e5809e2f6d0ccd5934f4a
stmmac: platform: Fix signedness bug in stmmac_probe_config_dt()

The "plat->phy_interface" variable is an enum and in this context GCC
will treat it as an unsigned int so the error handling is never
triggered.

Fixes: b9f0b2f634c0 ("net: stmmac: platform: fix probe for ACPI devices")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c