From c2e91542695270452ea7b5d3266ad0e9b5dc7bdb Mon Sep 17 00:00:00 2001 From: Aybuke Ozdemir Date: Wed, 17 Sep 2014 23:43:15 +0300 Subject: [PATCH] Staging: octeon: Missing a blank line after declarations Fix checkpatch.pl issues with missing a blank line after declarations in ethernet-sgmii.c Signed-off-by: Aybuke Ozdemir Signed-off-by: Greg Kroah-Hartman --- drivers/staging/octeon/ethernet-sgmii.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/octeon/ethernet-sgmii.c b/drivers/staging/octeon/ethernet-sgmii.c index e1878449e683..21a7a17acb79 100644 --- a/drivers/staging/octeon/ethernet-sgmii.c +++ b/drivers/staging/octeon/ethernet-sgmii.c @@ -99,6 +99,7 @@ int cvm_oct_sgmii_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);