[PATCH 2/4] net: phy: drop #ifdef CONFIG_DM_ETH around phy_connect_fixed

Bin Meng bmeng.cn at gmail.com
Thu Mar 11 10:37:39 CET 2021


On Wed, Feb 17, 2021 at 6:48 AM Vladimir Oltean <olteanv at gmail.com> wrote:
>
> From: Vladimir Oltean <vladimir.oltean at nxp.com>
>
> In drivers/net/phy/Kconfig, CONFIG_PHY_FIXED already depends on
> CONFIG_DM_ETH, so the function prototype definition when CONFIG_DM_ETH=n
> does nothing, so it can be dropped. It is also never reachable, since
> the whole function is already under #ifdef CONFIG_PHY_FIXED (which
> again, as I said, depends on CONFIG_DM_ETH=y).
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> ---
>  drivers/net/phy/phy.c | 6 ------
>  1 file changed, 6 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list