From: Aybuke Ozdemir Date: Mon, 22 Sep 2014 22:36:23 +0000 (+0300) Subject: Staging: octeon: Fix missing blank line warning. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e2ce06152ad5fdc67b3841d74852ffd30c2488e3;p=linux-beck.git 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 --- 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);