Skip to content

Commit

Permalink
net/bnxt: remove unnecessary check
Browse files Browse the repository at this point in the history
[ upstream commit aaa44cb ]

We are not invoking rte_eth_switch_domain_free currently owing to
an unnecessary check. This patch fixes that.

Fixes: e289530 ("net/bnxt: fix resource cleanup")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
  • Loading branch information
Kalesh AP authored and kevintraynor committed Oct 11, 2022
1 parent a12a1fc commit 50e0763
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/bnxt/bnxt_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5977,8 +5977,7 @@ bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev)
bnxt_uninit_ctx_mem(bp);

bnxt_free_flow_stats_info(bp);
if (bp->rep_info != NULL)
bnxt_free_switch_domain(bp);
bnxt_free_switch_domain(bp);
bnxt_free_rep_info(bp);
rte_free(bp->ptp_cfg);
bp->ptp_cfg = NULL;
Expand Down

0 comments on commit 50e0763

Please sign in to comment.