stmmac: platform: Fix signedness bug in stmmac_probe_config_dt()

[ Upstream commit eca81f0914 ]

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: b9f0b2f634 ("net: stmmac: platform: fix probe for ACPI devices")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
YueHaibing 2021-07-07 15:53:35 +08:00 • committed by Greg Kroah-Hartman
commit bb737eceb9