Variable "valid_slave" wasn't getting properly zero-initialized. This error is
flagged by clang on compile.

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 lib/librte_pmd_bond/rte_eth_bond_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c 
b/lib/librte_pmd_bond/rte_eth_bond_pmd.c
index 048de7f..6ce4e57 100644
--- a/lib/librte_pmd_bond/rte_eth_bond_pmd.c
+++ b/lib/librte_pmd_bond/rte_eth_bond_pmd.c
@@ -920,7 +920,7 @@ bond_ethdev_lsc_event_callback(uint8_t port_id, enum 
rte_eth_event_type type,
        struct bond_dev_private *internals;
        struct rte_eth_link link;

-       int i, bonded_port_id, valid_slave, active_pos = -1;
+       int i, bonded_port_id, valid_slave = 0, active_pos = -1;

        if (type != RTE_ETH_EVENT_INTR_LSC)
                return;
-- 
1.9.3

Reply via email to