]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ixgbe/base/ixgbe_common.c
net/ixgbe/base: fix pointer check
[dpdk.git] / drivers / net / ixgbe / base / ixgbe_common.c
index 811875a469ae05f7adef2627d690227aeb4b0c4b..161bf32071fd3caff49b9b9cdd00fb355c555e1b 100644 (file)
@@ -3967,7 +3967,7 @@ s32 ixgbe_set_vlvf_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
                 * we run the risk of stray packets leaking into
                 * the PF via the default pool
                 */
-               if (vfta_delta)
+               if (*vfta_delta)
                        IXGBE_WRITE_REG(hw, IXGBE_VFTA(vlan / 32), vfta);
 
                /* disable VLVF and clear remaining bit from pool */