[NTOS:CC] Use UNIMPLEMENTED_ONCE instead of custom code
[reactos.git] / ntoskrnl / cc / cacheman.c
index a2f9a9b..8ccd6a7 100644 (file)
@@ -165,7 +165,6 @@ CcScheduleReadAhead (
     LARGE_INTEGER NewOffset;
     PROS_SHARED_CACHE_MAP SharedCacheMap;
     PPRIVATE_CACHE_MAP PrivateCacheMap;
-    static ULONG Warn;
 
     SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
     PrivateCacheMap = FileObject->PrivateCacheMap;
@@ -215,7 +214,7 @@ CcScheduleReadAhead (
         {
             /* FIXME: handle the other cases */
             KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
-               if (!Warn++) UNIMPLEMENTED;
+            UNIMPLEMENTED_ONCE;
             return;
         }
     }