Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bc16add authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

mdio: remove an unneed condition



It used to be that mdio->irq was a pointer but after e7f4dc35
('mdio: Move allocation of interrupts into core') it's an array inside
the mdio struct so it can never be NULL.

Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db9107b4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -62,10 +62,8 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *chi
	rc = irq_of_parse_and_map(child, 0);
	if (rc > 0) {
		phy->irq = rc;
		if (mdio->irq)
		mdio->irq[addr] = rc;
	} else {
		if (mdio->irq)
		phy->irq = mdio->irq[addr];
	}