From db1f509d7a6575c2ea7485253aee488bd5b9e124 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 6 Jun 2011 17:50:05 +0000 Subject: [PATCH] [NTOSKRNL] Remove useless casts to volatile ULONG. It doesn't make sense to cast something to volatile, after the pointer is already dereferenced. But we don't need this here anyway. svn path=/trunk/; revision=52118 --- reactos/ntoskrnl/io/iomgr/volume.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/volume.c b/reactos/ntoskrnl/io/iomgr/volume.c index 401a5e01840..f7d17dd3df7 100644 --- a/reactos/ntoskrnl/io/iomgr/volume.c +++ b/reactos/ntoskrnl/io/iomgr/volume.c @@ -314,7 +314,7 @@ IopInterlockedIncrementUlong(IN KSPIN_LOCK_QUEUE_NUMBER Queue, ULONG OldValue; Irql = KeAcquireQueuedSpinLock(Queue); - OldValue = ((volatile ULONG)*Ulong)++; + OldValue = (*Ulong)++; KeReleaseQueuedSpinLock(Queue, Irql); return OldValue; @@ -332,7 +332,7 @@ IopInterlockedDecrementUlong(IN KSPIN_LOCK_QUEUE_NUMBER Queue, ULONG OldValue; Irql = KeAcquireQueuedSpinLock(Queue); - OldValue = ((volatile ULONG)*Ulong)--; + OldValue = (*Ulong)--; KeReleaseQueuedSpinLock(Queue, Irql); return OldValue; @@ -724,7 +724,7 @@ IopMountVolume(IN PDEVICE_OBJECT DeviceObject, * file system. */ if (!(AllowRawMount) && - (Status != STATUS_UNRECOGNIZED_VOLUME) && + (Status != STATUS_UNRECOGNIZED_VOLUME) && (FsRtlIsTotalDeviceFailure(Status))) { /* Break out and give up */