summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAybuke Ozdemir <aybuke.147@gmail.com>2014-09-23 01:36:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-23 11:33:47 -0700
commite2ce06152ad5fdc67b3841d74852ffd30c2488e3 (patch)
tree6ed4ace4430ee96f4b4ff56d5090b517f16c73a1 /drivers
parent20f4f1a0536c20ccd870a04b14cabf87c0fa295c (diff)
Staging: octeon: Fix missing blank line warning.
Fixes "Missing a blank line after declarations" checkpatch.pl warning in ethernet-xaui.c Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/octeon/ethernet-xaui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/octeon/ethernet-xaui.c b/drivers/staging/octeon/ethernet-xaui.c
index 3cc286ee3599..fd9d103d8e56 100644
--- a/drivers/staging/octeon/ethernet-xaui.c
+++ b/drivers/staging/octeon/ethernet-xaui.c
@@ -99,6 +99,7 @@ int cvm_oct_xaui_open(struct net_device *dev)
if (priv->phydev) {
int r = phy_read_status(priv->phydev);
+
if (r == 0 && priv->phydev->link == 0)
netif_carrier_off(dev);
cvm_oct_adjust_link(dev);