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:
parent
fcea115462
commit
8605b3aa0c
|
@ -180,7 +180,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
|
|||
}
|
||||
|
||||
/* Sleep */
|
||||
for (i = 0; i < 10000; i++) ;
|
||||
msleep(1);
|
||||
|
||||
}
|
||||
w_ReadWord =
|
||||
|
|
|
@ -224,7 +224,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
|
|||
|
||||
|
||||
/* Sleep */
|
||||
for (i = 0; i < 10000; i++) ;
|
||||
msleep(1);
|
||||
|
||||
}
|
||||
w_ReadWord =
|
||||
|
|
Loading…
Reference in New Issue