mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-13 20:33:15 +00:00
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>
This commit is contained in:
parent
1ffc4b7c58
commit
b52d031b8d
@ -99,7 +99,7 @@ int temac_mdio_setup(struct temac_local *lp, struct platform_device *pdev)
|
|||||||
of_address_to_resource(np, 0, &res);
|
of_address_to_resource(np, 0, &res);
|
||||||
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
|
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
|
||||||
(unsigned long long)res.start);
|
(unsigned long long)res.start);
|
||||||
} else if (pdata && pdata->mdio_bus_id >= 0) {
|
} else if (pdata) {
|
||||||
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
|
snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx",
|
||||||
pdata->mdio_bus_id);
|
pdata->mdio_bus_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user