Skip to content

Commit 5933c31

Browse files
committed
bnx2x: remove unused variable 'cur_data_offset'
JIRA: https://issues.redhat.com/browse/RHEL-23117 JIRA: https://issues.redhat.com/browse/RHEL-25588 commit 919d527 Author: Bill Wendling <morbo@google.com> Date: Wed Jul 14 02:17:46 2021 -0700 bnx2x: remove unused variable 'cur_data_offset' Fix the clang build warning: drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:1862:13: error: variable 'cur_data_offset' set but not used [-Werror,-Wunused-but-set-variable] dma_addr_t cur_data_offset; Signed-off-by: Bill Wendling <morbo@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
1 parent e76cfc4 commit 5933c31

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,6 @@ void bnx2x_iov_adjust_stats_req(struct bnx2x *bp)
18711871
{
18721872
int i;
18731873
int first_queue_query_index, num_queues_req;
1874-
dma_addr_t cur_data_offset;
18751874
struct stats_query_entry *cur_query_entry;
18761875
u8 stats_count = 0;
18771876
bool is_fcoe = false;
@@ -1892,10 +1891,6 @@ void bnx2x_iov_adjust_stats_req(struct bnx2x *bp)
18921891
BNX2X_NUM_ETH_QUEUES(bp), is_fcoe, first_queue_query_index,
18931892
first_queue_query_index + num_queues_req);
18941893

1895-
cur_data_offset = bp->fw_stats_data_mapping +
1896-
offsetof(struct bnx2x_fw_stats_data, queue_stats) +
1897-
num_queues_req * sizeof(struct per_queue_stats);
1898-
18991894
cur_query_entry = &bp->fw_stats_req->
19001895
query[first_queue_query_index + num_queues_req];
19011896

@@ -1946,7 +1941,6 @@ void bnx2x_iov_adjust_stats_req(struct bnx2x *bp)
19461941
cur_query_entry->funcID,
19471942
j, cur_query_entry->index);
19481943
cur_query_entry++;
1949-
cur_data_offset += sizeof(struct per_queue_stats);
19501944
stats_count++;
19511945

19521946
/* all stats are coalesced to the leading queue */

0 commit comments

Comments
 (0)