Commit bc0c3ae4 authored by Tang Bin's avatar Tang Bin Committed by David S. Miller

net/amd: Remove needless assignment and the extra brank lines

The variable 'err = -ENODEV;' in au1000_probe() is
duplicate, so remove redundant one. And remove the
extra blank lines in the file au1000_eth.c
Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b8241fe
...@@ -241,7 +241,6 @@ MODULE_LICENSE("GPL"); ...@@ -241,7 +241,6 @@ MODULE_LICENSE("GPL");
* ps: make sure the used irqs are configured properly in the board * ps: make sure the used irqs are configured properly in the board
* specific irq-map * specific irq-map
*/ */
static void au1000_enable_mac(struct net_device *dev, int force_reset) static void au1000_enable_mac(struct net_device *dev, int force_reset)
{ {
unsigned long flags; unsigned long flags;
...@@ -556,7 +555,6 @@ static int au1000_mii_probe(struct net_device *dev) ...@@ -556,7 +555,6 @@ static int au1000_mii_probe(struct net_device *dev)
return 0; return 0;
} }
/* /*
* Buffer allocation/deallocation routines. The buffer descriptor returned * Buffer allocation/deallocation routines. The buffer descriptor returned
* has the virtual and dma address of a buffer suitable for * has the virtual and dma address of a buffer suitable for
...@@ -647,7 +645,6 @@ au1000_setup_hw_rings(struct au1000_private *aup, void __iomem *tx_base) ...@@ -647,7 +645,6 @@ au1000_setup_hw_rings(struct au1000_private *aup, void __iomem *tx_base)
/* /*
* ethtool operations * ethtool operations
*/ */
static void static void
au1000_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) au1000_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
{ {
...@@ -679,7 +676,6 @@ static const struct ethtool_ops au1000_ethtool_ops = { ...@@ -679,7 +676,6 @@ static const struct ethtool_ops au1000_ethtool_ops = {
.set_link_ksettings = phy_ethtool_set_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings,
}; };
/* /*
* Initialize the interface. * Initialize the interface.
* *
...@@ -1255,7 +1251,6 @@ static int au1000_probe(struct platform_device *pdev) ...@@ -1255,7 +1251,6 @@ static int au1000_probe(struct platform_device *pdev)
aup->rx_db_inuse[i] = pDB; aup->rx_db_inuse[i] = pDB;
} }
err = -ENODEV;
for (i = 0; i < NUM_TX_DMA; i++) { for (i = 0; i < NUM_TX_DMA; i++) {
pDB = au1000_GetFreeDB(aup); pDB = au1000_GetFreeDB(aup);
if (!pDB) if (!pDB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment