From e2ce06152ad5fdc67b3841d74852ffd30c2488e3 Mon Sep 17 00:00:00 2001 From: Aybuke Ozdemir Date: Tue, 23 Sep 2014 01:36:23 +0300 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/octeon/ethernet-xaui.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5