Skip to content

Commit

Permalink
net/qede/base: remove unused message size
Browse files Browse the repository at this point in the history
[ upstream commit 2ccebad ]

Reported by clang 13.

Bugzilla ID: 881
Fixes: 86a2265 ("qede: add SRIOV support")

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>
  • Loading branch information
conorwalsh-intel authored and cpaelzer committed Nov 30, 2021
1 parent 571c9e5 commit fd9fd79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/qede/base/ecore_vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit fd9fd79

Please sign in to comment.