Skip to content

Commit 360d749

Browse files
aneftinanguy11
authored andcommitted
igc: Fix static checker warning
drivers/net/ethernet/intel/igc/igc_mac.c:424 igc_check_for_copper_link() error: uninitialized symbol 'link'. This patch come to fix this warning and initialize the 'link' symbol. Reported-by: Dan Carpenter <[email protected]> Fixes: 707abf0 ("igc: Add initial LTR support") Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent db02bee commit 360d749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/igc/igc_mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ void igc_rar_set(struct igc_hw *hw, u8 *addr, u32 index)
355355
s32 igc_check_for_copper_link(struct igc_hw *hw)
356356
{
357357
struct igc_mac_info *mac = &hw->mac;
358+
bool link = false;
358359
s32 ret_val;
359-
bool link;
360360

361361
/* We only want to go out to the PHY registers to see if Auto-Neg
362362
* has completed and/or if our link status has changed. The

0 commit comments

Comments
 (0)