[U-Boot] [PATCH v1 3/3] net: macb: Remove redundant #ifdef CONFIG_DM_ETH

Wenyou Yang wenyou.yang at atmel.com
Thu Oct 20 04:55:32 CEST 2016


Remove the redundant #ifdef CONFIG_DM_ETH/#endif.

Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
---

 drivers/net/macb.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 0628ff5..72cf9c3 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1055,8 +1055,6 @@ static int macb_eth_probe(struct udevice *dev)
 {
 	struct eth_pdata *pdata = dev_get_platdata(dev);
 	struct macb_device *macb = dev_get_priv(dev);
-
-#ifdef CONFIG_DM_ETH
 	const char *phy_mode;
 	int ret;
 
@@ -1067,7 +1065,6 @@ static int macb_eth_probe(struct udevice *dev)
 		debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
 		return -EINVAL;
 	}
-#endif
 
 	macb->regs = (void *)pdata->iobase;
 
-- 
2.7.4



More information about the U-Boot mailing list