Просмотр исходного кода

Correct queue_Data_Transfer

For files of length 1<<14 there should be no 'next', as all data are transferred in one transfer
main
WMXZ-EU 6 лет назад
Родитель
Сommit
b6e2d1aa59
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      ehci.cpp

+ 1
- 1
ehci.cpp Просмотреть файл

transfer = allocate_Transfer(); transfer = allocate_Transfer();
if (!transfer) return false; if (!transfer) return false;
data = transfer; data = transfer;
for (count=(len >> 14); count; count--) {
for (count=((len-1) >> 14); count; count--) {
next = allocate_Transfer(); next = allocate_Transfer();
if (!next) { if (!next) {
// free already-allocated qTDs // free already-allocated qTDs

Загрузка…
Отмена
Сохранить