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:
Родитель
fcea115462
Коммит
8605b3aa0c
|
@ -180,7 +180,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sleep */
|
/* Sleep */
|
||||||
for (i = 0; i < 10000; i++) ;
|
msleep(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
w_ReadWord =
|
w_ReadWord =
|
||||||
|
|
|
@ -224,7 +224,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
|
||||||
|
|
||||||
|
|
||||||
/* Sleep */
|
/* Sleep */
|
||||||
for (i = 0; i < 10000; i++) ;
|
msleep(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
w_ReadWord =
|
w_ReadWord =
|
||||||
|
|
Загрузка…
Ссылка в новой задаче