mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user