Skip to content

Commit

Permalink
Staging: comedi: replace for loop with msleep()
Browse files Browse the repository at this point in the history
Replace 2 attempts to use a for loop as a sleep with a call to msleep().

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Jun 19, 2009
1 parent fcea115 commit 8605b3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
}

/* Sleep */
for (i = 0; i < 10000; i++) ;
msleep(1);

}
w_ReadWord =
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,


/* Sleep */
for (i = 0; i < 10000; i++) ;
msleep(1);

}
w_ReadWord =
Expand Down

0 comments on commit 8605b3a

Please sign in to comment.