Home Home > GIT Browse > SLE15-SP2-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-10-18 15:34:20 +0200
committerMichal Kubecek <mkubecek@suse.cz>2019-10-19 00:59:19 +0200
commitf9d614d9e58df5f66188701fbcf992c32fb71175 (patch)
treebb5b078dff1f75e71ad2a2303acf0e800e5b7c68
parentc89f063e93f7b7fa60abf37d7f12ff7e38932842 (diff)
net: hisilicon: Fix signedness bug in hix5hd2_dev_probe()
(bsc#1154353). suse-commit: 6d0aa7a1c0cac8169a441c252ac71f4289a21174
-rw-r--r--drivers/net/ethernet/hisilicon/hix5hd2_gmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
index 95a6b0926170..c41b19c760f8 100644
--- a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
+++ b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
@@ -1194,7 +1194,7 @@ static int hix5hd2_dev_probe(struct platform_device *pdev)
goto err_free_mdio;
priv->phy_mode = of_get_phy_mode(node);
- if (priv->phy_mode < 0) {
+ if ((int)priv->phy_mode < 0) {
netdev_err(ndev, "not find phy-mode\n");
ret = -EINVAL;
goto err_mdiobus;