From: Zijie Pan Date: Thu, 6 Dec 2012 07:36:51 +0000 (+0800) Subject: lib: fix uninitialized value X-Git-Tag: spdx-start~11280 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=06cf9be95ce16b363c4267d2d17e27c2706629ae;p=dpdk.git lib: fix uninitialized value Fix warning "The left expression of the compound assignment is an uninitialized value". Signed-off-by: Zijie Pan Acked-by: Ivan Boule Acked-by: Adrien Mazarguil --- diff --git a/lib/librte_pmd_e1000/e1000/e1000_vf.c b/lib/librte_pmd_e1000/e1000/e1000_vf.c index 4d8f58b1ad..7f1cd8192a 100644 --- a/lib/librte_pmd_e1000/e1000/e1000_vf.c +++ b/lib/librte_pmd_e1000/e1000/e1000_vf.c @@ -414,12 +414,13 @@ void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, DEBUGOUT1("MC Addr Count = %d\n", mc_addr_count); + msgbuf[0] = E1000_VF_SET_MULTICAST; + if (mc_addr_count > 30) { msgbuf[0] |= E1000_VF_SET_MULTICAST_OVERFLOW; mc_addr_count = 30; } - msgbuf[0] = E1000_VF_SET_MULTICAST; msgbuf[0] |= mc_addr_count << E1000_VT_MSGINFO_SHIFT; for (i = 0; i < mc_addr_count; i++) {