net/ixgbe/base: fix product version check
authorCongwen Zhang <zhang.congwen@zte.com.cn>
Thu, 8 Aug 2019 00:37:20 +0000 (08:37 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 8 Aug 2019 14:55:19 +0000 (16:55 +0200)
commit1861e3a66ffb7fa33e7767649c7091f1900c8808
treed29ca2b0a89e812a9ae9532b229bfe99ef7295f5
parent4dec9c79c2d76e08b3951a91137bb8622a465675
net/ixgbe/base: fix product version check

The "and" condition offset == 0 && offset == NVM_INVALID_PTR
 can never be true.

Fixes: cf3af5aa56c9 ("net/ixgbe/base: add functions to get version info")
Cc: stable@dpdk.org
Signed-off-by: Congwen Zhang <zhang.congwen@zte.com.cn>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/base/ixgbe_common.c