mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2eb03e6c4e
commit
cfaace269d
1 changed files with 1 additions and 2 deletions
|
|
@ -684,8 +684,7 @@ 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];
|
||||
phy->irq = mdio->irq[addr];
|
||||
|
||||
/* All data is now stored in the phy struct;
|
||||
* register it
|
||||
|
|
|
|||
Loading…
Reference in a new issue