Staging: comedi: replace for loop with msleep()

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>
This commit is contained in:
Bill Pemberton 2009-04-26 14:45:11 -04:00 committed by Greg Kroah-Hartman
parent fcea115462
commit 8605b3aa0c
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
}
/* Sleep */
for (i = 0; i < 10000; i++) ;
msleep(1);
}
w_ReadWord =

View File

@ -224,7 +224,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
/* Sleep */
for (i = 0; i < 10000; i++) ;
msleep(1);
}
w_ReadWord =