lkml.org 
[lkml]   [2023]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] xen-netback: remove unused variables pending_idx and index
From
On 26.02.23 17:34, Tom Rix wrote:
> building with gcc and W=1 reports
> drivers/net/xen-netback/netback.c:886:21: error: variable
> ‘pending_idx’ set but not used [-Werror=unused-but-set-variable]
> 886 | u16 pending_idx;
> | ^~~~~~~~~~~
>
> pending_idx is not used so remove it. Since index was only
> used to set pending_idx, remove index as well.
>
> Signed-off-by: Tom Rix <trix@redhat.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen

[unhandled content-type:application/pgp-keys][unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2023-03-27 00:36    [W:0.040 / U:3.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site