]> git.droids-corp.org - dpdk.git/commitdiff
net/qede/base: remove unused message size
authorConor Walsh <conor.walsh@intel.com>
Mon, 15 Nov 2021 17:58:54 +0000 (17:58 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 12:01:52 +0000 (13:01 +0100)
Reported by clang 13.

Bugzilla ID: 881
Fixes: 86a2265e59d7 ("qede: add SRIOV support")
Cc: stable@dpdk.org
Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/qede/base/ecore_vf.c

index db03bc494fed6d39641a3a5ce1afdc3c90bf5098..a36ae47c2bbb75ad6358b2e5757834201a8b72ef 100644 (file)
@@ -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;