From: SeeChen Ng Date: Sun, 7 Sep 2014 12:19:25 +0000 (+0800) Subject: staging: netlogic: fix checkpatch.pl "LINE_SPACING" issuses X-Git-Tag: v3.18-rc1~130^2~623 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c56051c0a5f65459eca011e4a95ecc6a004d5083;p=karo-tx-linux.git staging: netlogic: fix checkpatch.pl "LINE_SPACING" issuses Follow the checkpatch.pl "LINE_SPACING" indication: 1. Insert a blank line after function declaration. 2. Remove multiple blank lines. Signed-off-by: SeeChen Ng Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index 3f9c5ad44da5..ad19ba9df3c7 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -177,6 +177,7 @@ static int xlr_get_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) return -ENODEV; return phy_ethtool_gset(phydev, ecmd); } + static int xlr_set_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) { struct xlr_net_priv *priv = netdev_priv(ndev); @@ -192,7 +193,6 @@ static struct ethtool_ops xlr_ethtool_ops = { .set_settings = xlr_set_settings, }; - /* * Net operations */ @@ -220,7 +220,6 @@ static int xlr_net_open(struct net_device *ndev) struct xlr_net_priv *priv = netdev_priv(ndev); struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; - /* schedule a link state check */ phy_start(phydev); @@ -694,7 +693,6 @@ static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) xlr_nae_wreg(base_addr, R_MII_MGMT_COMMAND, (1 << O_MII_MGMT_COMMAND__rstat)); - /* poll for the read cycle to complete */ while (!timedout) { checktime = jiffies; @@ -765,7 +763,6 @@ static void xlr_sgmii_init(struct xlr_net_priv *priv) xlr_nae_wreg(priv->gpio_addr, 0x22, 0x7e6802); xlr_nae_wreg(priv->gpio_addr, 0x21, 0x7104); - /* enable autoneg - more magic */ phy = priv->phy_addr % 4 + 27; xlr_phy_write(priv->pcs_addr, phy, 0, 0x1000);