[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
This commit is contained in:
Timo Kreuzer 2011-06-06 17:50:05 +00:00
parent 15b10b556d
commit db1f509d7a

View file

@ -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 */