diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-20 02:13:53 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-23 23:57:50 -0500 |
commit | d1e7fe4d92742dd1aa28ca11512628adc79a904b (patch) | |
tree | 6e91ec8f67314651601ec968b35c1d9be110b39e /drivers/net/phy | |
parent | 68707acb5b5d4e2b7583cbff0883516afed54d4f (diff) | |
download | kernel_samsung_crespo-d1e7fe4d92742dd1aa28ca11512628adc79a904b.zip kernel_samsung_crespo-d1e7fe4d92742dd1aa28ca11512628adc79a904b.tar.gz kernel_samsung_crespo-d1e7fe4d92742dd1aa28ca11512628adc79a904b.tar.bz2 |
net/phy/mdio_bus.c: fix a check-after-use
This patch fixes a check-after-use spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 6e9f619..963630c 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -49,13 +49,13 @@ int mdiobus_register(struct mii_bus *bus) int i; int err = 0; - mutex_init(&bus->mdio_lock); - if (NULL == bus || NULL == bus->name || NULL == bus->read || NULL == bus->write) return -EINVAL; + mutex_init(&bus->mdio_lock); + if (bus->reset) bus->reset(bus); |