From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Wed, 25 Sep 2019 13:57:14 +0300 > The "priv->if_mode" is type phy_interface_t which is an enum. In this > context GCC will treat the enum as an unsigned int so this error > handling is never triggered. > > Fixes: d4fd0404c1c9 ("enetc: Introduce basic PF and VF ENETC ethernet drivers") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Applied.