From: Amir Avivi <[email protected]>
Fix static analysis warning about comparison between types of
incompatible width, which might lead to an infinite loop due to overflow.
Fixes: 8cb7c57d9b3c ("net/igc: support device initialization")
Cc: [email protected]
Signed-off-by: Amir Avivi <[email protected]>
Signed-off-by: Anatoly Burakov <[email protected]>
---
.mailmap | 1 +
drivers/net/intel/igc/base/igc_phy.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index 3faff80f0e..23ec118ebc 100644
--- a/.mailmap
+++ b/.mailmap
@@ -84,6 +84,7 @@ Amaranath Somalapuram <[email protected]>
Amine Kherbouche <[email protected]>
Amin Tootoonchian <[email protected]>
Ami Sabo <[email protected]>
+Amir Avivi <[email protected]>
Amit Bernstein <[email protected]>
Amit Gupta <[email protected]>
Amit Prakash Shukla <[email protected]>
diff --git a/drivers/net/intel/igc/base/igc_phy.c
b/drivers/net/intel/igc/base/igc_phy.c
index 706f037f0e..dd56b994af 100644
--- a/drivers/net/intel/igc/base/igc_phy.c
+++ b/drivers/net/intel/igc/base/igc_phy.c
@@ -2366,7 +2366,8 @@ s32 igc_phy_has_link_generic(struct igc_hw *hw, u32
iterations,
u32 usec_interval, bool *success)
{
s32 ret_val = IGC_SUCCESS;
- u16 i, phy_status;
+ u16 phy_status;
+ u32 i;
DEBUGFUNC("igc_phy_has_link_generic");
--
2.43.5