diff options
author | Hannu Lounento <hannu.lounento@ge.com> | 2017-01-02 18:26:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 09:01:05 +0100 |
commit | 170c8c366ad4b23e285f37311ff106c3a6f737b1 (patch) | |
tree | af3666ee612c11f53fe6af6ca6fc3ad089c38530 /drivers | |
parent | 3d208b5adcf3199bb84b13c2b83d39886c0a4fb2 (diff) | |
download | linux-stable-170c8c366ad4b23e285f37311ff106c3a6f737b1.tar.gz linux-stable-170c8c366ad4b23e285f37311ff106c3a6f737b1.tar.bz2 linux-stable-170c8c366ad4b23e285f37311ff106c3a6f737b1.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_i210.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.c b/drivers/net/ethernet/intel/igb/e1000_i210.c index 65d931669f81..89402fce7d79 100644 --- a/drivers/net/ethernet/intel/igb/e1000_i210.c +++ b/drivers/net/ethernet/intel/igb/e1000_i210.c @@ -699,9 +699,9 @@ static s32 igb_update_flash_i210(struct e1000_hw *hw) ret_val = igb_pool_flash_update_done_i210(hw); if (ret_val) - hw_dbg("Flash update complete\n"); - else hw_dbg("Flash update time out\n"); + else + hw_dbg("Flash update complete\n"); out: return ret_val; |