]> git.baikalelectronics.ru Git - kernel.git/commit
net: hisilicon: Fix signedness bug in hix5hd2_dev_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Sep 2019 10:55:32 +0000 (13:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 08:01:36 +0000 (10:01 +0200)
commit8caf06f07ea3548fa1ed85c420add29800187eb5
tree0c1919e93759d3572f49587bd362a329a1d36112
parentc99e685b1188a357b387b1532a3bba6cbbec2a79
net: hisilicon: Fix signedness bug in hix5hd2_dev_probe()

The "priv->phy_mode" variable is an enum and in this context GCC will
treat it as unsigned to the error handling will never trigger.

Fixes: bb37f2c9208b ("net: hisilicon: add hix5hd2 mac driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c