aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon
diff options
context:
space:
mode:
authorAybuke Ozdemir <aybuke.147@gmail.com>2014-09-17 23:43:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 17:42:15 -0700
commitc2e91542695270452ea7b5d3266ad0e9b5dc7bdb (patch)
tree8c26a9426b788a54fc9f288a756f84546a91306f /drivers/staging/octeon
parent05fd349b1750d456423538e69c3c1d4d8a10f1c8 (diff)
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 <aybuke.147@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon')
-rw-r--r--drivers/staging/octeon/ethernet-sgmii.c1
1 files changed, 1 insertions, 0 deletions
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);

Privacy Policy