[MSFS]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 10 Oct 2015 12:16:17 +0000 (12:16 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 10 Oct 2015 12:16:17 +0000 (12:16 +0000)
MessageEvent is no longer used, remove it

svn path=/trunk/; revision=69481

reactos/drivers/filesystems/msfs/create.c
reactos/drivers/filesystems/msfs/msfs.h
reactos/drivers/filesystems/msfs/rw.c

index 036b4ca..aad7ee3 100644 (file)
@@ -177,9 +177,6 @@ MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
     Fcb->MaxMessageSize = Buffer->MaximumMessageSize;
     Fcb->MessageCount = 0;
     Fcb->TimeOut = Buffer->ReadTimeout;
-    KeInitializeEvent(&Fcb->MessageEvent,
-                      NotificationEvent,
-                      FALSE);
 
     InitializeListHead(&Fcb->MessageListHead);
     KeInitializeSpinLock(&Fcb->MessageListLock);
index 1ef087b..ee2441d 100644 (file)
@@ -31,7 +31,6 @@ typedef struct _MSFS_FCB
     struct _MSFS_CCB *ServerCcb;
     ULONG ReferenceCount;
     LARGE_INTEGER TimeOut;
-    KEVENT MessageEvent;
     ULONG MaxMessageSize;
     ULONG MessageCount;
     KSPIN_LOCK MessageListLock;
index 30e4d4d..1b88b7d 100644 (file)
@@ -75,10 +75,6 @@ MsfsRead(PDEVICE_OBJECT DeviceObject,
 
         ExFreePoolWithTag(Message, 'rFsM');
         Fcb->MessageCount--;
-        if (Fcb->MessageCount == 0)
-        {
-            KeClearEvent(&Fcb->MessageEvent);
-        }
 
         Irp->IoStatus.Status = STATUS_SUCCESS;
         Irp->IoStatus.Information = LengthRead;
@@ -191,12 +187,6 @@ MsfsWrite(PDEVICE_OBJECT DeviceObject,
     KeReleaseSpinLock(&Fcb->MessageListLock, oldIrql);
 
     Fcb->MessageCount++;
-    if (Fcb->MessageCount == 1)
-    {
-        KeSetEvent(&Fcb->MessageEvent,
-                   0,
-                   FALSE);
-    }
 
     if (Fcb->WaitCount > 0)
     {