Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150041
b: refs/heads/master
c: 3935358
h: refs/heads/master
i:
  150039: c7a524d
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Apr 28, 2009
1 parent 3d9986a commit b5031d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 833cc67c7722e35863c6aaee9df56b442ef957ae
refs/heads/master: 3935358ebcb8320965478c0e8ee070e1d65851c8
8 changes: 4 additions & 4 deletions trunk/drivers/net/igb/e1000_mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ static s32 igb_poll_for_msg(struct e1000_hw *hw, u16 mbx_id)
struct e1000_mbx_info *mbx = &hw->mbx;
int countdown = mbx->timeout;

if (!mbx->ops.check_for_msg)
if (!countdown || !mbx->ops.check_for_msg)
goto out;

while (mbx->ops.check_for_msg(hw, mbx_id)) {
countdown--;
if (!countdown)
break;
countdown--;
udelay(mbx->usec_delay);
}
out:
Expand All @@ -165,13 +165,13 @@ static s32 igb_poll_for_ack(struct e1000_hw *hw, u16 mbx_id)
struct e1000_mbx_info *mbx = &hw->mbx;
int countdown = mbx->timeout;

if (!mbx->ops.check_for_ack)
if (!countdown || !mbx->ops.check_for_ack)
goto out;

while (mbx->ops.check_for_ack(hw, mbx_id)) {
countdown--;
if (!countdown)
break;
countdown--;
udelay(mbx->usec_delay);
}
out:
Expand Down

0 comments on commit b5031d4

Please sign in to comment.