diff options
author | Michal Kalderon <Michal.Kalderon@cavium.com> | 2017-07-03 21:55:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-03 14:23:53 -0700 |
commit | 25f4535a94c2b38d09912d7e8bab371c9e97be38 (patch) | |
tree | bac60ef291436b7fb10c089107f897c05d02e97a /drivers/net/ethernet/qlogic | |
parent | 52427fa0631269c62885dc48e0c32e2ad6e17f8c (diff) | |
download | linux-25f4535a94c2b38d09912d7e8bab371c9e97be38.tar.bz2 |
qed: initialize ll2_syn_handle at start of function
Fix compilation warning
qed_iwarp.c:1721:5: warning: ll2_syn_handle may be used
uninitialized in this function
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c index 5cd20da2d4e0..b251ebaec4db 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c @@ -1724,7 +1724,7 @@ qed_iwarp_ll2_comp_syn_pkt(void *cxt, struct qed_ll2_comp_rx_data *data) int rc; memset(&cm_info, 0, sizeof(cm_info)); - + ll2_syn_handle = p_hwfn->p_rdma_info->iwarp.ll2_syn_handle; if (GET_FIELD(data->parse_flags, PARSING_AND_ERR_FLAGS_L4CHKSMWASCALCULATED) && GET_FIELD(data->parse_flags, PARSING_AND_ERR_FLAGS_L4CHKSMERROR)) { @@ -1740,7 +1740,6 @@ qed_iwarp_ll2_comp_syn_pkt(void *cxt, struct qed_ll2_comp_rx_data *data) goto err; /* Check if there is a listener for this 4-tuple+vlan */ - ll2_syn_handle = p_hwfn->p_rdma_info->iwarp.ll2_syn_handle; listener = qed_iwarp_get_listener(p_hwfn, &cm_info); if (!listener) { DP_VERBOSE(p_hwfn, |