Re: [PATCH V2 net-next] net: fec: remove last_bdp from fec_enet_txq_xmit_frame()

From: Simon Horman
Date: Tue May 30 2023 - 03:45:20 EST


On Mon, May 29, 2023 at 10:26:15AM +0800, wei.fang@xxxxxxx wrote:
> From: Wei Fang <wei.fang@xxxxxxx>
>
> The last_bdp is initialized to bdp, and both last_bdp and bdp are
> not changed. That is to say that last_bdp and bdp are always equal.
> So bdp can be used directly.
>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
> ---
> V2 change:
> Refine the commit message to make it more clear which is suggested
> by Simon Horman.

Thanks!

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>