net/i40e/base: fix compile issue for GCC 6.3
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:18 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitbc29754abacd0b2f61195736374d275552d3a518
tree9b4a353a75f97091abea8bd2d6f56fbfcb2666d9
parent1b3ca9ad9f497fe5e0e3660ae7e58d822d50d7b4
net/i40e/base: fix compile issue for GCC 6.3

When using GCC 6.3.0 and EXTRA_CFLAGS=-Og, the compiler is not smart
enough to see that when you have an integrated VF that just one of the
if statemets has to be true so that ntu is always set. Fix the way that
the code is for integrated VFs so that the compiler won't complain.

Fixes: 9783eb15eb98 ("i40e/base: wrap the register definitions for PF and VF")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_adminq.c