net/bnx2x: fix build with icc
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Sep 2016 14:14:13 +0000 (15:14 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 17:38:17 +0000 (19:38 +0200)
commit35050da740f0a031fb2c550f367d14db30ca8b9a
tree67916112afe180c26dd845d9c35da837a25a78e2
parent5b463eda8d26ded69700bc76c0e465e0a5a3f6fb
net/bnx2x: fix build with icc

When bnx2x debug config enabled, icc (ICC) 17.0.0 20160721
gives the following compilation error:

.../drivers/net/bnx2x/elink.c(6682):
error #3656: variable "fw_ver1" may be used before its value is set
PMD_DRV_LOG(DEBUG,
^

According logic in the code, this error is a false positive,
but since this is not in the fast path, fixing compiler error by
assigning initial value to variable.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
drivers/net/bnx2x/elink.c