From: Ajit Khaparde Date: Tue, 24 Oct 2017 21:19:52 +0000 (-0500) Subject: net/bnxt: fix an unused value X-Git-Tag: spdx-start~1096 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8159471a3ab27bb3439495fd87143d0bccbcb597;p=dpdk.git net/bnxt: fix an unused value return value stored in "rc" but it has been overwritten before use. Coverity issue: 147216 Fixes: 7a5b0874440e ("net/bnxt: support to add a VF MAC address") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/rte_pmd_bnxt.c b/drivers/net/bnxt/rte_pmd_bnxt.c index afe0cbfce5..8b67ad7ff6 100644 --- a/drivers/net/bnxt/rte_pmd_bnxt.c +++ b/drivers/net/bnxt/rte_pmd_bnxt.c @@ -709,7 +709,7 @@ int rte_pmd_bnxt_mac_addr_add(uint16_t port, struct ether_addr *addr, /* If the VF currently uses a random MAC, update default to this one */ if (bp->pf.vf_info[vf_id].random_mac) { if (rte_pmd_bnxt_get_vf_rx_status(port, vf_id) <= 0) - rc = bnxt_hwrm_func_vf_mac(bp, vf_id, (uint8_t *)addr); + bnxt_hwrm_func_vf_mac(bp, vf_id, (uint8_t *)addr); } /* query the default VNIC id used by the function */