]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/smsc9420.c
smsc9420: fix another postfixed timeout
[linux-2.6-omap-h63xx.git] / drivers / net / smsc9420.c
index a1e4b3895b339d0a007ec07483e6039bf1d212d0..83938e1953b0c693a6fcb4e159978f5b799e6bd7 100644 (file)
@@ -341,7 +341,7 @@ static int smsc9420_eeprom_send_cmd(struct smsc9420_pdata *pd, u32 op)
        do {
                msleep(1);
                e2cmd = smsc9420_reg_read(pd, E2P_CMD);
-       } while ((e2cmd & E2P_CMD_EPC_BUSY_) && (timeout--));
+       } while ((e2cmd & E2P_CMD_EPC_BUSY_) && (--timeout));
 
        if (!timeout) {
                smsc_info(HW, "TIMED OUT");