diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c index dfcbb54e93..f0e102152f 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c @@ -86,7 +86,7 @@ static int ag71xx_ethtool_set_ringparam(struct net_device *dev, struct ag71xx *ag = netdev_priv(dev); unsigned tx_size; unsigned rx_size; - int err; + int err = 0; if (er->rx_mini_pending != 0|| er->rx_jumbo_pending != 0 ||