From: Kalesh AP Date: Thu, 24 Oct 2019 07:44:16 +0000 (+0530) Subject: net/bnxt: fix check while freeing filter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fb33ac033a87398ccce9b4a8624485be345fdc46;p=dpdk.git net/bnxt: fix check while freeing filter This patch fixes the coverity UNUSED_VALUE issue. Coverity issue: 349938 Fixes: 49d0709b257f ("net/bnxt: delete and flush L2 filters cleanly") Signed-off-by: Kalesh AP Reviewed-by: Ajit Khaparde Signed-off-by: Somnath Kotur --- diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c index 8120b39165..1c8e3e329b 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -120,6 +120,10 @@ void bnxt_free_filter_mem(struct bnxt *bp) filter->filter_type == HWRM_CFA_NTUPLE_FILTER) { /* Call HWRM to try to free filter again */ rc = bnxt_hwrm_clear_ntuple_filter(bp, filter); + if (rc) + PMD_DRV_LOG(ERR, + "Cannot free ntuple filter: %d\n", + rc); } filter->fw_ntuple_filter_id = UINT64_MAX;