[NTOS:MM] MmDeleteProcessAddressSpace(): Move 'Address' to where it belongs (#2865)

No impact.

Detected by Cppcheck: unusedVariable.
Addendum to 2dade10d54.
This commit is contained in:
Serge Gautherie 2020-06-01 11:10:11 +02:00 committed by GitHub
parent 703c56beb3
commit ceccaae311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -572,7 +572,6 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
{
#ifndef _M_AMD64
KIRQL OldIrql;
PVOID Address;
#endif
DPRINT("MmDeleteProcessAddressSpace(Process %p (%s))\n", Process,
@ -591,7 +590,9 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
#if (_MI_PAGING_LEVELS == 2)
{
KIRQL OldIrql;
PVOID Address;
PMMPDE pointerPde;
/* Attach to Process */
KeAttachProcess(&Process->Pcb);