Skip to content
Snippets Groups Projects
Commit ee7f5bfd authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

net: designware: fix unused warning when CONFIG_DW_AUTONEG is enabled


The ctrl variable is only used when autoneg support is disabled, so only
declare it under those conditions to avoid an unused variable warning.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Reviewed-by: default avatarVipin Kumar <vipin.kumar@st.com>
parent 67d668bf
No related branches found
No related tags found
No related merge requests found
......@@ -368,11 +368,13 @@ static int configure_phy(struct eth_device *dev)
{
struct dw_eth_dev *priv = dev->priv;
int phy_addr;
u16 bmcr, ctrl;
u16 bmcr;
#if defined(CONFIG_DW_AUTONEG)
u16 bmsr;
u32 timeout;
u16 anlpar, btsr;
#else
u16 ctrl;
#endif
#if defined(CONFIG_DW_SEARCH_PHY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment