Skip to content

Commit 222a6c4

Browse files
sumang-mrvlkuba-moo
authored andcommitted
octeontx2-af: Initialize 'cntr_val' to fix uninitialized symbol error
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c:860 otx2_tc_update_mcam_table_del_req() error: uninitialized symbol 'cntr_val'. Fixes: ec87f05 ("octeontx2-af: Install TC filter rules in hardware based on priority") Signed-off-by: Suman Ghosh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a4989be commit 222a6c4

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+2
-2
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ static int otx2_tc_update_mcam_table_del_req(struct otx2_nic *nic,
841841
struct list_head *pos, *n;
842842
struct otx2_tc_flow *tmp;
843843
int i = 0, index = 0;
844-
u16 cntr_val;
844+
u16 cntr_val = 0;
845845

846846
/* Find and delete the entry from the list and re-install
847847
* all the entries from beginning to the index of the
@@ -880,7 +880,7 @@ static int otx2_tc_update_mcam_table_add_req(struct otx2_nic *nic,
880880
int mcam_idx = flow_cfg->max_flows - flow_cfg->nr_flows - 1;
881881
struct otx2_tc_flow *tmp;
882882
int list_idx, i;
883-
u16 cntr_val;
883+
u16 cntr_val = 0;
884884

885885
/* Find the index of the entry(list_idx) whose priority
886886
* is greater than the new entry and re-install all

0 commit comments

Comments
 (0)