2
0
forked from Ivasoft/openwrt

generic: fix compilation warning for ar8xxx swconfig

There are 2 warning for ar8xxx swconfig.
- Fix not used dev variable when ETHERNET_PACKET_MANGLE
  is not selected
- Convert fallthrough comment to compilation macro

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith
2022-03-01 16:47:11 +01:00
committed by Daniel Golle
parent 327b6dbd98
commit 49d9d2b210
2 changed files with 3 additions and 1 deletions

View File

@@ -2433,7 +2433,9 @@ static int
ar8xxx_phy_config_init(struct phy_device *phydev)
{
struct ar8xxx_priv *priv = phydev->priv;
#ifdef CONFIG_ETHERNET_PACKET_MANGLE
struct net_device *dev = phydev->attached_dev;
#endif
int ret;
if (WARN_ON(!priv))