Re: [PATCH net-next v5 7/8] net: pktgen: remove all superfluous index assignements
From: Simon Horman
Date: Sun Feb 16 2025 - 09:15:29 EST
On Thu, Feb 13, 2025 at 12:19:19PM +0100, Peter Seiderer wrote:
> Remove all superfluous index ('i += len') assignements (value not used
> afterwards).
>
> Signed-off-by: Peter Seiderer <ps.report@xxxxxxx>
> ---
> Changes v4 -> v5
> - new patch (suggested by Simon Horman)
> ---
> net/core/pktgen.c | 52 ++++++-----------------------------------------
> 1 file changed, 6 insertions(+), 46 deletions(-)
Thanks Peter,
I went through each of these and they all seem to be cases
where i is incremented but the function returns without using
the new value of i.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>