From 087eda6b501580328193b66b3005b3fe01d562fc Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 28 Dec 2010 16:03:46 +0000 Subject: [PATCH] [NTOSKRNL] - Use SLIST_ENTRY instead of SINGLE_LIST_ENTRY for interlocked operations - Remove unused variable svn path=/branches/cmake-bringup/; revision=50191 --- ntoskrnl/include/internal/amd64/mm.h | 2 -- ntoskrnl/include/internal/ob_x.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ntoskrnl/include/internal/amd64/mm.h b/ntoskrnl/include/internal/amd64/mm.h index d6343ed2d2c..71c4d84ced5 100644 --- a/ntoskrnl/include/internal/amd64/mm.h +++ b/ntoskrnl/include/internal/amd64/mm.h @@ -157,8 +157,6 @@ VOID MI_MAKE_PROTOTYPE_PTE(IN PMMPTE NewPte, IN PMMPTE PointerPte) { - ULONG_PTR Offset; - /* Store the Address */ NewPte->u.Long = (ULONG64)PointerPte; diff --git a/ntoskrnl/include/internal/ob_x.h b/ntoskrnl/include/internal/ob_x.h index 545b41fc67e..aa9d59cd05d 100644 --- a/ntoskrnl/include/internal/ob_x.h +++ b/ntoskrnl/include/internal/ob_x.h @@ -358,14 +358,14 @@ ObpFreeCapturedAttributes(IN PVOID Buffer, { /* The free was within the Depth */ InterlockedPushEntrySList(&List->L.ListHead, - (PSINGLE_LIST_ENTRY)Buffer); + (PSLIST_ENTRY)Buffer); } } else { /* The free was within the Depth */ InterlockedPushEntrySList(&List->L.ListHead, - (PSINGLE_LIST_ENTRY)Buffer); + (PSLIST_ENTRY)Buffer); } }