aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xilinx
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-05-03 15:50:51 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-05 10:29:26 -0700
commitb52d031b8de496c39e0ba1b8cf5292ad8e4ae4fe (patch)
treedddd848534bc907f657cc5a23c5bc9c772230d18 /drivers/net/ethernet/xilinx
parentnet: ll_temac: Fix an NULL vs IS_ERR() check in temac_open() (diff)
downloadlinux-dev-b52d031b8de496c39e0ba1b8cf5292ad8e4ae4fe.tar.xz
linux-dev-b52d031b8de496c39e0ba1b8cf5292ad8e4ae4fe.zip
net: ll_temac: remove an unnecessary condition
The "pdata->mdio_bus_id" is unsigned so this condition is always true. This patch just removes it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r--drivers/net/ethernet/xilinx/ll_temac_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_mdio.c b/drivers/net/ethernet/xilinx/ll_temac_mdio.c
index c2a11703bc6d..a4667326f745 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_mdio.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_mdio.c
@@ -99,7 +99,7 @@ int temac_mdio_setup(struct temac_local *lp, struct platform_device *pdev)
of_address_to_resource(np, 0, &res);
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
(unsigned long long)res.start);
- } else if (pdata && pdata->mdio_bus_id >= 0) {
+ } else if (pdata) {
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
pdata->mdio_bus_id);
}