|
@@ -341,7 +341,7 @@ static int smsc9420_eeprom_send_cmd(struct smsc9420_pdata *pd, u32 op)
|
|
do {
|
|
do {
|
|
msleep(1);
|
|
msleep(1);
|
|
e2cmd = smsc9420_reg_read(pd, E2P_CMD);
|
|
e2cmd = smsc9420_reg_read(pd, E2P_CMD);
|
|
- } while ((e2cmd & E2P_CMD_EPC_BUSY_) && (timeout--));
|
|
|
|
|
|
+ } while ((e2cmd & E2P_CMD_EPC_BUSY_) && (--timeout));
|
|
|
|
|
|
if (!timeout) {
|
|
if (!timeout) {
|
|
smsc_info(HW, "TIMED OUT");
|
|
smsc_info(HW, "TIMED OUT");
|