Author: tkreuzer
Date: Sun Nov 22 22:10:06 2009
New Revision: 44270
URL:
http://svn.reactos.org/svn/reactos?rev=44270&view=rev
Log:
Remove some useless code.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/iosup.c
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/mdlsup.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/iosup.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/iosup.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/iosup.c [iso-8859-1] Sun Nov 22
22:10:06 2009
@@ -54,7 +54,6 @@
PMMPTE PointerPte;
PVOID BaseAddress;
MMPTE TempPte;
- PMMPFN Pfn1 = NULL;
MI_PFN_CACHE_ATTRIBUTE CacheAttribute;
BOOLEAN IsIoMapping;
@@ -91,7 +90,6 @@
//
Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT);
IsIoMapping = (Pfn > MmHighestPhysicalPage) ? TRUE : FALSE;
- if (!IsIoMapping) Pfn1 = MiGetPfnEntry(Pfn);
CacheAttribute = MiPlatformCacheAttributes[IsIoMapping][CacheType];
//
@@ -159,10 +157,8 @@
}
//
- // Sanity check and re-flush
- //
- Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT);
- ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL));
+ // Re-flush
+ //
KeFlushEntireTb(TRUE, TRUE);
KeInvalidateAllCaches();
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/mdlsup.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] Sun Nov 22
22:10:06 2009
@@ -581,7 +581,6 @@
NTSTATUS ProbeStatus;
PMMPTE PointerPte, PointerPde, LastPte;
PFN_NUMBER PageFrameIndex;
- PMMPFN Pfn1;
BOOLEAN UsePfnLock;
KIRQL OldIrql;
DPRINT("Probing MDL: %p\n", Mdl);
@@ -958,7 +957,6 @@
//
// Get the PFN entry
//
- Pfn1 = MiGetPfnEntry(PageFrameIndex);
ASSERT((CurrentProcess == NULL) || (UsePfnLock == FALSE));
//