Author: ekohl
Date: Mon Dec  9 12:55:23 2013
New Revision: 61253

URL: http://svn.reactos.org/svn/reactos?rev=61253&view=rev
Log:
[FASTFAT]
VfatSetInformation:
- Rename the variable RC to Status.
- Get rid of variable CanWait.

Modified:
    trunk/reactos/drivers/filesystems/fastfat/finfo.c

Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat/finfo.c?rev=61253&r1=61252&r2=61253&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/finfo.c   [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/finfo.c   [iso-8859-1] Mon Dec  9 
12:55:23 2013
@@ -964,9 +964,8 @@
 {
     FILE_INFORMATION_CLASS FileInformationClass;
     PVFATFCB FCB = NULL;
-    NTSTATUS RC = STATUS_SUCCESS;
+    NTSTATUS Status = STATUS_SUCCESS;
     PVOID SystemBuffer;
-    BOOLEAN CanWait = (IrpContext->Flags & IRPCONTEXT_CANWAIT) != 0;
 
     /* PRECONDITION */
     ASSERT(IrpContext);
@@ -1007,7 +1006,7 @@
     if (!(FCB->Flags & FCB_IS_PAGE_FILE))
     {
         if (!ExAcquireResourceExclusiveLite(&FCB->MainResource,
-                                            (BOOLEAN)CanWait))
+                                            (BOOLEAN)(IrpContext->Flags & 
IRPCONTEXT_CANWAIT)))
         {
             return VfatQueueRequest(IrpContext);
         }
@@ -1016,38 +1015,38 @@
     switch (FileInformationClass)
     {
         case FilePositionInformation:
-            RC = VfatSetPositionInformation(IrpContext->FileObject,
-                                            SystemBuffer);
+            Status = VfatSetPositionInformation(IrpContext->FileObject,
+                                                SystemBuffer);
             break;
 
         case FileDispositionInformation:
-            RC = VfatSetDispositionInformation(IrpContext->FileObject,
-                                               FCB,
-                                               IrpContext->DeviceObject,
-                                               SystemBuffer);
+            Status = VfatSetDispositionInformation(IrpContext->FileObject,
+                                                   FCB,
+                                                   IrpContext->DeviceObject,
+                                                   SystemBuffer);
             break;
 
         case FileAllocationInformation:
         case FileEndOfFileInformation:
-            RC = VfatSetAllocationSizeInformation(IrpContext->FileObject,
-                                                  FCB,
-                                                  IrpContext->DeviceExt,
-                                                  
(PLARGE_INTEGER)SystemBuffer);
+            Status = VfatSetAllocationSizeInformation(IrpContext->FileObject,
+                                                      FCB,
+                                                      IrpContext->DeviceExt,
+                                                      
(PLARGE_INTEGER)SystemBuffer);
             break;
 
         case FileBasicInformation:
-            RC = VfatSetBasicInformation(IrpContext->FileObject,
-                                         FCB,
-                                         IrpContext->DeviceExt,
-                                         SystemBuffer);
+            Status = VfatSetBasicInformation(IrpContext->FileObject,
+                                             FCB,
+                                             IrpContext->DeviceExt,
+                                             SystemBuffer);
             break;
 
         case FileRenameInformation:
-            RC = STATUS_NOT_IMPLEMENTED;
+            Status = STATUS_NOT_IMPLEMENTED;
             break;
 
         default:
-            RC = STATUS_NOT_SUPPORTED;
+            Status = STATUS_NOT_SUPPORTED;
     }
 
     if (!(FCB->Flags & FCB_IS_PAGE_FILE))
@@ -1055,12 +1054,12 @@
         ExReleaseResourceLite(&FCB->MainResource);
     }
 
-    IrpContext->Irp->IoStatus.Status = RC;
+    IrpContext->Irp->IoStatus.Status = Status;
     IrpContext->Irp->IoStatus.Information = 0;
     IoCompleteRequest(IrpContext->Irp, IO_NO_INCREMENT);
     VfatFreeIrpContext(IrpContext);
 
-    return RC;
+    return Status;
 }
 
 /* EOF */


Reply via email to