]> git.baikalelectronics.ru Git - kernel.git/commit
phy: remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jan 2016 09:36:21 +0000 (12:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jan 2016 16:51:58 +0000 (11:51 -0500)
commit67d5853db8ede7da54dd1db7f632984136c89885
treedb0bc7ccc0f45f2f790e641eaa2a77ae4e9163e2
parent61a253c1a20d6fe6f503eb002de575ca004c846f
phy: remove an unneeded condition

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

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c