Skip to content
Commit ccf8f7d7 authored by Tom Rix's avatar Tom Rix Committed by Jakub Kicinski
Browse files

xen-netback: remove unused variables pending_idx and index



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: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20230226163429.2351600-1-trix@redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4db692d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment