[REISERFS] Don't allocate (and leak :-)) an unused event
authorPierre Schweitzer <pierre@reactos.org>
Sun, 22 Oct 2017 20:30:22 +0000 (22:30 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 22 Oct 2017 20:30:22 +0000 (22:30 +0200)
CID 1363603

drivers/filesystems/reiserfs/src/shutdown.c

index 9b644bd..8bacff6 100644 (file)
@@ -27,7 +27,9 @@ NTSTATUS
 RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
 {
     NTSTATUS                Status;
+#ifndef __REACTOS__
     PKEVENT                 Event;
+#endif
     PIRP                    Irp;
     PIO_STACK_LOCATION      IrpSp;
     PRFSD_VCB               Vcb;
@@ -61,8 +63,10 @@ RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
             
         GlobalResourceAcquired = TRUE;
 
+#ifndef __REACTOS__
         Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), RFSD_POOL_TAG);
         KeInitializeEvent(Event, NotificationEvent, FALSE );
+#endif
 
         for (ListEntry = RfsdGlobal->VcbList.Flink;
              ListEntry != &(RfsdGlobal->VcbList);