qed: iWARP - fix uninitialized callback
authorMichal Kalderon <michal.kalderon@marvell.com>
Thu, 13 Jun 2019 08:29:41 +0000 (11:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:23:30 +0000 (19:23 -0700)
Fix uninitialized variable warning by static checker.

Fixes: ae3488ff37dc ("qed: Add ll2 connection for processing unaligned MPA packets")
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_iwarp.c

index 4c69adb0b535ebfc6868d33e9d4a6988d5016f79..099177c6aca2e83d9ef692dab19119220263db53 100644 (file)
@@ -2640,6 +2640,7 @@ qed_iwarp_ll2_start(struct qed_hwfn *p_hwfn,
        cbs.rx_release_cb = qed_iwarp_ll2_rel_rx_pkt;
        cbs.tx_comp_cb = qed_iwarp_ll2_comp_tx_pkt;
        cbs.tx_release_cb = qed_iwarp_ll2_rel_tx_pkt;
+       cbs.slowpath_cb = NULL;
        cbs.cookie = p_hwfn;
 
        memset(&data, 0, sizeof(data));