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 <seechen81@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7e6646d50a
commit
c56051c0a5
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue