net/bnx2x: fix build error with icc

Message ID 1561504260-1264-1-git-send-email-rmody@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series net/bnx2x: fix build error with icc |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS

Commit Message

Rasesh Mody June 25, 2019, 11:11 p.m. UTC
  Fix a compilation issue seen with icc 19

Signed-off-by: Rasesh Mody <rmody@marvell.com>
---
 drivers/net/bnx2x/elink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon June 26, 2019, 7:15 a.m. UTC | #1
26/06/2019 01:11, Rasesh Mody:
> Fix a compilation issue seen with icc 19
> 
> Signed-off-by: Rasesh Mody <rmody@marvell.com>

Applied in master branch to recover CI, thanks
  

Patch

diff --git a/drivers/net/bnx2x/elink.c b/drivers/net/bnx2x/elink.c
index d569366..b65126d 100644
--- a/drivers/net/bnx2x/elink.c
+++ b/drivers/net/bnx2x/elink.c
@@ -8097,7 +8097,7 @@  static elink_status_t elink_8073_8727_external_rom_boot(struct bnx2x_softc *sc,
 					     uint8_t port)
 {
 	uint32_t count = 0;
-	uint16_t fw_ver1, fw_msgout;
+	uint16_t fw_ver1 = 0, fw_msgout;
 	elink_status_t rc = ELINK_STATUS_OK;
 
 	/* Boot port from external ROM  */