Re: [PATCH net-next 6/9] net: phy: mediatek: Hook LED helper functions in mtk-ge.c
From: Andrew Lunn
Date: Sun Oct 06 2024 - 17:32:23 EST
> +static int mt753x_phy_led_blink_set(struct phy_device *phydev, u8 index,
> + unsigned long *delay_on,
> + unsigned long *delay_off)
> +{
> + struct mtk_gephy_priv *priv = phydev->priv;
> + bool blinking = false;
> + int err = 0;
There is no need to set err.
> +
> + err = mtk_phy_led_num_dly_cfg(index, delay_on, delay_off, &blinking);
> + if (err < 0)
> + return err;
Andrew
---
pw-bot: cr