Skip to content

Commit bb848b6

Browse files
Hannu Lounentogregkh
authored andcommitted
igb: Fix hw_dbg logging in igb_update_flash_i210
[ Upstream commit 76ed5a8f47476e4984cc8c0c1bc4cee62650f7fd ] Fix an if statement with hw_dbg lines where the logic was inverted with regards to the corresponding return value used in the if statement. Signed-off-by: Hannu Lounento <hannu.lounento@ge.com> Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ba83011 commit bb848b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/ethernet/intel/igb/e1000_i210.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,9 @@ static s32 igb_update_flash_i210(struct e1000_hw *hw)
699699

700700
ret_val = igb_pool_flash_update_done_i210(hw);
701701
if (ret_val)
702-
hw_dbg("Flash update complete\n");
703-
else
704702
hw_dbg("Flash update time out\n");
703+
else
704+
hw_dbg("Flash update complete\n");
705705

706706
out:
707707
return ret_val;

0 commit comments

Comments
 (0)