net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Sep 2019 11:05:54 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 08:21:44 +0000 (10:21 +0200)
commit751d155a828b394533830619163a58fd5942ea8e
tree28c2ac29c20530c6ec7a1015f29306dbdae2ed74
parent4f5ab85a118474a994892c2389d9d4bbab9aaad8
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()

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

Fixes: 5c0e7d2be3a0 ("stmmac: add ipq806x glue layer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c