Author: akhaldi
Date: Thu Nov 24 11:22:18 2011
New Revision: 54486
URL:
http://svn.reactos.org/svn/reactos?rev=54486&view=rev
Log:
[NTOSKRNL]
* Timo Kreuzer: Fix some dead code. CID 14595.
Modified:
trunk/reactos/ntoskrnl/mm/i386/page.c
Modified: trunk/reactos/ntoskrnl/mm/i386/page.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/i386/page.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/i386/page.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/i386/page.c [iso-8859-1] Thu Nov 24 11:22:18 2011
@@ -213,7 +213,7 @@
{
/* We should have a process for user land addresses */
ASSERT(Process != NULL);
-
+
if(Process != PsGetCurrentProcess())
{
PageDir =
MmCreateHyperspaceMapping(PTE_TO_PFN(Process->Pcb.DirectoryTableBase[0]));
@@ -229,8 +229,9 @@
return NULL;
}
MI_SET_USAGE(MI_USAGE_LEGACY_PAGE_DIRECTORY);
- if (Process) MI_SET_PROCESS2(Process->ImageFileName);
- if (!Process) MI_SET_PROCESS2("Kernel Legacy");
+
+ MI_SET_PROCESS2(Process->ImageFileName);
+
Status = MmRequestPageMemoryConsumer(MC_SYSTEM, FALSE, &Pfn);
if (!NT_SUCCESS(Status) || Pfn == 0)
{
@@ -264,8 +265,8 @@
return NULL;
}
MI_SET_USAGE(MI_USAGE_LEGACY_PAGE_DIRECTORY);
- if (Process) MI_SET_PROCESS2(Process->ImageFileName);
- if (!Process) MI_SET_PROCESS2("Kernel Legacy");
+ MI_SET_PROCESS2(Process->ImageFileName);
+
Status = MmRequestPageMemoryConsumer(MC_SYSTEM, FALSE, &Pfn);
if (!NT_SUCCESS(Status) || Pfn == 0)
{