From 3991819297b0699437c50cc3f178570b27eefc39 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Fri, 28 Sep 2007 22:00:52 +0000 Subject: [PATCH] uniata patch by encoded: - Make building with QUEUE_STATISTICS possible - Fix the best_c check. As best_c is a ULONG variable, you cannot check for -1 svn path=/trunk/; revision=29287 --- reactos/drivers/storage/ide/uniata/id_queue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/storage/ide/uniata/id_queue.cpp b/reactos/drivers/storage/ide/uniata/id_queue.cpp index 5ec1a06e96d..42dda92f235 100644 --- a/reactos/drivers/storage/ide/uniata/id_queue.cpp +++ b/reactos/drivers/storage/ide/uniata/id_queue.cpp @@ -133,9 +133,11 @@ UniataQueueRequest( new_cost1 = UniataGetCost(LunExt, AtaReq1, AtaReq); new_cost2 = UniataGetCost(LunExt, AtaReq, AtaReq2); +#ifdef QUEUE_STATISTICS if(new_cost1 == REORDER_COST_INTERSECT || new_cost2 == REORDER_COST_INTERSECT) chan->IntersectCount++; +#endif //QUEUE_STATISTICS if(new_cost2 > REORDER_COST_RESELECT) break; @@ -348,7 +350,7 @@ UniataGetNextChannel( cost_c = chan->queue_depth * (chan->ChannelSelectWaitCount+1); } } - if(best_c == -1) { + if(best_c == 0xFFFFFFFF) { KdPrint2((PRINT_PREFIX " empty queues\n")); return NULL; }