Re: [PATCH V2 net-next] net: fec: remove useless fec_enet_reset_skb()
From: Simon Horman
Date: Fri May 19 2023 - 03:36:00 EST
On Fri, May 19, 2023 at 10:01:13AM +0800, wei.fang@xxxxxxx wrote:
> From: Wei Fang <wei.fang@xxxxxxx>
>
> This patch is a cleanup for fec driver. The fec_enet_reset_skb()
> is used to free skb buffers for tx queues and is only invoked in
> fec_restart(). However, fec_enet_bd_init() also resets skb buffers
> and is invoked in fec_restart() too. So fec_enet_reset_skb() is
> redundant and useless.
>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
> ---
> V2 change:
> According to Simon Horman's suggestion, it's just a cleanup and without
> user-visible problem, so change the target tree from net to net-next.
Thanks Wei Fang, looks good.
Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>