Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit eca81f09 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

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: b9f0b2f6

 ("net: stmmac: platform: fix probe for ACPI devices")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d472c69
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment