From: Wenyou Yang Date: Wed, 2 Nov 2016 02:06:57 +0000 (+0800) Subject: net: macb: Remove redundant #ifdef CONFIG_DM_ETH X-Git-Tag: v2017.03-rc2~10^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d2c1d26ee58b46f042b23af62209c2e1860bb24;p=u-boot net: macb: Remove redundant #ifdef CONFIG_DM_ETH Remove the redundant #ifdef CONFIG_DM_ETH/#endif. Signed-off-by: Wenyou Yang Acked-by: Joe Hershberger --- diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f97b82afdd..67d820fefa 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1030,8 +1030,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; @@ -1042,7 +1040,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;