From: Conor Walsh Date: Mon, 15 Nov 2021 17:58:54 +0000 (+0000) Subject: net/qede/base: remove unused message size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2ccebadab2f1e7fa867c708cc1487986ac3be122;p=dpdk.git net/qede/base: remove unused message size Reported by clang 13. Bugzilla ID: 881 Fixes: 86a2265e59d7 ("qede: add SRIOV support") Cc: stable@dpdk.org Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Reviewed-by: David Marchand --- diff --git a/drivers/net/qede/base/ecore_vf.c b/drivers/net/qede/base/ecore_vf.c index db03bc494f..a36ae47c2b 100644 --- a/drivers/net/qede/base/ecore_vf.c +++ b/drivers/net/qede/base/ecore_vf.c @@ -73,7 +73,7 @@ static void ecore_vf_pf_req_end(struct ecore_hwfn *p_hwfn, #endif static enum _ecore_status_t ecore_send_msg2pf(struct ecore_hwfn *p_hwfn, - u8 *done, u32 resp_size) + u8 *done, __rte_unused u32 resp_size) { union vfpf_tlvs *p_req = p_hwfn->vf_iov_info->vf2pf_request; struct ustorm_trigger_vf_zone trigger; @@ -86,9 +86,6 @@ ecore_send_msg2pf(struct ecore_hwfn *p_hwfn, /* output tlvs list */ ecore_dp_tlv_list(p_hwfn, p_req); - /* need to add the END TLV to the message size */ - resp_size += sizeof(struct channel_list_end_tlv); - /* Send TLVs over HW channel */ OSAL_MEMSET(&trigger, 0, sizeof(struct ustorm_trigger_vf_zone)); trigger.vf_pf_msg_valid = 1;