Re: [PATCH net] selftests: gro: remove unused variable total_data

From: Willem de Bruijn

Date: Thu Oct 22 2026 - 11:30:15 EST


Antoine Tenart wrote:
> On Thu, Oct 22, 2026 at 11:09:35AM +0800, Hangbin Liu wrote:
> > From: Hangbin Liu <liuhangbin@xxxxxxxxxx>
> >
> > I hit a build warning when building the net selftests.
> >
> > gro.c: In function 'check_capacity_pkts': gro.c:1249:13: warning: variable 'total_data' set but not used [-Wunused-but-set-variable=]
> > 1249 | int total_data = 0;
> > | ^~~~~~~~~~
> >
> > Remove the total_data variable, as it is no longer used.
> >
> > Fixes: d97348474708 ("selftests: drv-net: gro: always wait for FIN in the capacity test")
> > Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxxx>
>
> Reviewed-by: Antoine Tenart <atenart@xxxxxxxxxx>

Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>