Remove some useless code.

svn path=/branches/ros-amd64-bringup/; revision=44270
This commit is contained in:
Timo Kreuzer
2009-11-22 21:10:06 +00:00
parent aae3e9fba5
commit 7ccba78dc7
2 changed files with 1 additions and 7 deletions
+1 -5
View File
@@ -54,7 +54,6 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
PMMPTE PointerPte;
PVOID BaseAddress;
MMPTE TempPte;
PMMPFN Pfn1 = NULL;
MI_PFN_CACHE_ATTRIBUTE CacheAttribute;
BOOLEAN IsIoMapping;
@@ -91,7 +90,6 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
//
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 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
}
//
// Sanity check and re-flush
// Re-flush
//
Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT);
ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL));
KeFlushEntireTb(TRUE, TRUE);
KeInvalidateAllCaches();
-2
View File
@@ -581,7 +581,6 @@ MmProbeAndLockPages(IN PMDL Mdl,
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 @@ MmProbeAndLockPages(IN PMDL Mdl,
//
// Get the PFN entry
//
Pfn1 = MiGetPfnEntry(PageFrameIndex);
ASSERT((CurrentProcess == NULL) || (UsePfnLock == FALSE));
//