Skip to content

Commit

Permalink
net/dpaa2: fix build with clang 15
Browse files Browse the repository at this point in the history
[ upstream commit d929890 ]

This variable is not used.

Fixes: 4690a61 ("net/dpaa2: enable error queues optionally")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
david-marchand authored and kevintraynor committed Nov 23, 2022
1 parent c44d10c commit c5f3360
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/dpaa2/dpaa2_rxtx.c
Expand Up @@ -577,7 +577,7 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q)
/* Function receive frames for a given device and VQ */
struct qbman_result *dq_storage;
uint32_t fqid = dpaa2_q->fqid;
int ret, num_rx = 0, num_pulled;
int ret, num_rx = 0;
uint8_t pending, status;
struct qbman_swp *swp;
const struct qbman_fd *fd;
Expand Down Expand Up @@ -617,7 +617,6 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q)
while (!qbman_check_command_complete(dq_storage))
;

num_pulled = 0;
pending = 1;
do {
/* Loop until the dq_storage is updated with
Expand Down Expand Up @@ -652,7 +651,6 @@ dump_err_pkts(struct dpaa2_queue *dpaa2_q)

dq_storage++;
num_rx++;
num_pulled++;
} while (pending);

dpaa2_q->err_pkts += num_rx;
Expand Down

0 comments on commit c5f3360

Please sign in to comment.