]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: netlogic: fix checkpatch.pl "LINE_SPACING" issuses
authorSeeChen Ng <seechen81@gmail.com>
Sun, 7 Sep 2014 12:19:25 +0000 (20:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:02:13 +0000 (14:02 -0700)
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 <seechen81@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c

index 3f9c5ad44da53196a3494dc6aae14ffa677248c9..ad19ba9df3c7c5a39c9ce8e82ffae15a31bde2af 100644 (file)
@@ -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);