diff options
author | Laura Garcia Liebana <nevola@gmail.com> | 2016-02-27 23:43:12 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 06:09:09 (GMT) |
commit | e8a4e572c4e75900c77a5854eb54a6c9173f9ac6 (patch) | |
tree | 01fac11b609d427aff236d01db1152ba97fd3a18 /drivers/staging/octeon/ethernet-mdio.c | |
parent | 0e350e17b934ed9cbca7f5b3dfb08381c860b2df (diff) | |
download | linux-e8a4e572c4e75900c77a5854eb54a6c9173f9ac6.tar.xz |
staging: octeon: Remove comparison to NULL
Comparison to NULL should be avoided in conditions. Chackpatch detected
these issues.
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon/ethernet-mdio.c')
-rw-r--r-- | drivers/staging/octeon/ethernet-mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c index 0ac11b1..e13a4ab 100644 --- a/drivers/staging/octeon/ethernet-mdio.c +++ b/drivers/staging/octeon/ethernet-mdio.c @@ -196,7 +196,7 @@ int cvm_oct_phy_setup_device(struct net_device *dev) priv->phydev = of_phy_connect(dev, phy_node, cvm_oct_adjust_link, 0, PHY_INTERFACE_MODE_GMII); - if (priv->phydev == NULL) + if (!priv->phydev) return -ENODEV; priv->last_link = 0; |