remove eol whitespace
Modified: trunk/reactos/ntoskrnl/mm/marea.c
_____
Modified: trunk/reactos/ntoskrnl/mm/marea.c
--- trunk/reactos/ntoskrnl/mm/marea.c 2005-01-28 22:43:13 UTC (rev
13358)
+++ trunk/reactos/ntoskrnl/mm/marea.c 2005-01-29 03:15:05 UTC (rev
13359)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -60,13 +60,13 @@
else
{
PMEMORY_AREA TempNode = NULL;
-
+
do
{
/* Check if we're at the end of tree. */
if (Node->Parent == NULL)
return NULL;
-
+
TempNode = Node;
Node = Node->Parent;
}
@@ -113,13 +113,13 @@
else
{
PMEMORY_AREA TempNode = NULL;
-
+
do
{
/* Check if we're at the end of tree. */
if (Node->Parent == NULL)
return NULL;
-
+
TempNode = Node;
Node = Node->Parent;
}
@@ -134,7 +134,7 @@
PMEMORY_AREA Node;
ASSERT(AddressSpace != NULL);
-
+
/* Special case for empty tree. */
if (AddressSpace->MemoryAreaRoot == NULL)
return;
@@ -152,7 +152,7 @@
}
}
#else
-#define MmVerifyMemoryAreas(x)
+#define MmVerifyMemoryAreas(x)
#endif
VOID STDCALL
@@ -161,7 +161,7 @@
PMEMORY_AREA Node;
DbgPrint("MmDumpMemoryAreas()\n");
-
+
/* Special case for empty tree. */
if (AddressSpace->MemoryAreaRoot == NULL)
return;
@@ -268,13 +268,13 @@
* @name MmCompressHelper
*
* This is helper of MmRebalanceTree. Performs a compression
transformation
- * count times, starting at root.
+ * count times, starting at root.
*/
static VOID
MmCompressHelper(
PMADDRESS_SPACE AddressSpace,
- ULONG Count)
+ ULONG Count)
{
PMEMORY_AREA Root = NULL;
PMEMORY_AREA Red = AddressSpace->MemoryAreaRoot;
@@ -328,13 +328,13 @@
CurrentNode = AddressSpace->MemoryAreaRoot;
while (CurrentNode != NULL)
{
- if (CurrentNode->RightChild == NULL)
+ if (CurrentNode->RightChild == NULL)
{
PreviousNode = CurrentNode;
CurrentNode = CurrentNode->LeftChild;
NodeCount++;
}
- else
+ else
{
TempNode = CurrentNode->RightChild;
@@ -358,7 +358,7 @@
/* Transform Vine back into a balanced tree. */
Leaves = NodeCount + 1;
- for (;;)
+ for (;;)
{
ULONG Next = Leaves & (Leaves - 1);
if (Next == 0)
@@ -371,7 +371,7 @@
Vine = NodeCount - Leaves;
Height = 1 + (Leaves > 0);
- while (Vine > 1)
+ while (Vine > 1)
{
MmCompressHelper(AddressSpace, Vine / 2);
Vine /= 2;
@@ -407,14 +407,14 @@
ASSERT(marea->EndingAddress <= Node->StartingAddress ||
marea->StartingAddress >= Node->EndingAddress);
ASSERT(marea->StartingAddress != Node->StartingAddress);
-
+
PreviousNode = Node;
-
+
if (marea->StartingAddress < Node->StartingAddress)
Node = Node->LeftChild;
else
Node = Node->RightChild;
-
+
if (Node)
{
Depth++;
@@ -569,7 +569,7 @@
/* Check for overflow. */
if (AlignedAddress > PreviousNode->StartingAddress)
return NULL;
-
+
if (Node->EndingAddress <= AlignedAddress)
{
DPRINT("MmFindGapTopDown: %p\n", AlignedAddress);
@@ -689,7 +689,7 @@
*
* Free an existing memory area.
*
- * @param AddressSpace
+ * @param AddressSpace
* Address space to free the area from.
* @param MemoryArea
* Memory area we're about to free.
@@ -721,7 +721,7 @@
KeAttachProcess(&AddressSpace->Process->Pcb);
}
- EndAddress = MM_ROUND_UP(MemoryArea->EndingAddress, PAGE_SIZE);
+ EndAddress = MM_ROUND_UP(MemoryArea->EndingAddress, PAGE_SIZE);
for (Address = (ULONG_PTR)MemoryArea->StartingAddress;
Address < (ULONG_PTR)EndAddress;
Address += PAGE_SIZE)
@@ -758,7 +758,7 @@
KeDetachProcess();
}
- /* Remove the tree item. */
+ /* Remove the tree item. */
{
if (MemoryArea->Parent != NULL)
{
@@ -824,7 +824,7 @@
*
* Free an existing memory area given a pointer inside it.
*
- * @param AddressSpace
+ * @param AddressSpace
* Address space to free the area from.
* @param BaseAddress
* Address in the memory area we're about to free.
@@ -875,7 +875,7 @@
*
* Create a memory area.
*
- * @param AddressSpace
+ * @param AddressSpace
* Address space to create the area in.
* @param Type
* Type of the memory area.
@@ -1000,7 +1000,7 @@
PLIST_ENTRY Entry;
PMM_REGION Region;
BOOLEAN Reserved;
-
+
MmVerifyMemoryAreas(AddressSpace);
MemoryArea = MmLocateMemoryAreaByAddress(AddressSpace, BaseAddress);
Show replies by date