Skip to content

Commit

Permalink
xsk: remove unused variable outstanding_tx
Browse files Browse the repository at this point in the history
Remove the unused variable outstanding_tx.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
  • Loading branch information
magnus-karlsson authored and tohojo committed Sep 18, 2022
1 parent 2b65008 commit 2387514
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/libxdp/xsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ struct xsk_ctx {
struct xsk_socket {
struct xsk_ring_cons *rx;
struct xsk_ring_prod *tx;
__u64 outstanding_tx;
struct xsk_ctx *ctx;
struct xsk_socket_config config;
int fd;
Expand Down Expand Up @@ -879,7 +878,6 @@ int xsk_socket__create_shared(struct xsk_socket **xsk_ptr,
if (err)
goto out_xsk_alloc;

xsk->outstanding_tx = 0;
ifindex = if_nametoindex(ifname);
if (!ifindex) {
err = -errno;
Expand Down

0 comments on commit 2387514

Please sign in to comment.