Re: [PATCH net] of: mdio: Fix a signedness bug in of_phy_get_and_connect()

From: David Miller
Date: Fri Sep 27 2019 - 04:20:21 EST


From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Wed, 25 Sep 2019 14:01:00 +0300

> The "iface" variable is an enum and in this context GCC treats it as
> an unsigned int so the error handling is never triggered.
>
> Fixes: b78624125304 ("of_mdio: Abstract a general interface for phy connect")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied.