Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132138
b: refs/heads/master
c: 858b9ce
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and David S. Miller committed Mar 4, 2009
1 parent 50caf87 commit 973d4ab
Show file tree
Hide file tree
Showing 4 changed files with 6 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: 4222474519ff5b31a526dfa1da7aa4b0e38bef5c
refs/heads/master: 858b9ced6e73a0f087294c398a1ae70a7eeed94f
2 changes: 1 addition & 1 deletion trunk/drivers/net/arm/ks8695net.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ ks8695_reset(struct ks8695_priv *ksp)
msleep(1);
}

if (reset_timeout == 0) {
if (reset_timeout < 0) {
dev_crit(ksp->dev,
"Timeout waiting for DMA engines to reset\n");
/* And blithely carry on */
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,13 +957,14 @@ jme_process_receive(struct jme_adapter *jme, int limit)
goto out_inc;

i = atomic_read(&rxring->next_to_clean);
while (limit-- > 0) {
while (limit > 0) {
rxdesc = rxring->desc;
rxdesc += i;

if ((rxdesc->descwb.flags & cpu_to_le16(RXWBFLAG_OWN)) ||
!(rxdesc->descwb.desccnt & RXWBDCNT_WBCPL))
goto out;
--limit;

desccnt = rxdesc->descwb.desccnt & RXWBDCNT_DCNT;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ucc_geth_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
static int uec_mdio_reset(struct mii_bus *bus)
{
struct ucc_mii_mng __iomem *regs = (void __iomem *)bus->priv;
unsigned int timeout = PHY_INIT_TIMEOUT;
int timeout = PHY_INIT_TIMEOUT;

mutex_lock(&bus->mdio_lock);

Expand All @@ -123,7 +123,7 @@ static int uec_mdio_reset(struct mii_bus *bus)

mutex_unlock(&bus->mdio_lock);

if (timeout <= 0) {
if (timeout < 0) {
printk(KERN_ERR "%s: The MII Bus is stuck!\n", bus->name);
return -EBUSY;
}
Expand Down

0 comments on commit 973d4ab

Please sign in to comment.