Commit cfaace26 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

net: hns: mdio->irq is an array, so no need to check if it is null



The null check on mdio->irq is redundant since mdio->irq is an array
of PHY_MAX_ADDR ints and hence can never be null. Remove the redundant
check.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2eb03e6c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -684,7 +684,6 @@ hns_mac_register_phydev(struct mii_bus *mdio, struct hns_mac_cb *mac_cb,
	if (!phy || IS_ERR(phy))
		return -EIO;

	if (mdio->irq)
	phy->irq = mdio->irq[addr];

	/* All data is now stored in the phy struct;