[MUP]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 3 Sep 2015 21:19:05 +0000 (21:19 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 3 Sep 2015 21:19:05 +0000 (21:19 +0000)
Fix an hypthetic uninit var usage in MupCreate().
Dedicated to Chris.

CID 1322239

svn path=/trunk/; revision=68967

reactos/drivers/filesystems/mup/mup.c

index 60fce94..674a25d 100644 (file)
@@ -2214,12 +2214,9 @@ MupCreate(PDEVICE_OBJECT DeviceObject,
     _SEH2_TRY
     {
         /* If DFS is enabled, check if that's for DFS and is so relay */
-        if (MupEnableDfs)
+        if (MupEnableDfs && (DeviceObject->DeviceType == FILE_DEVICE_DFS || DeviceObject->DeviceType == FILE_DEVICE_DFS_FILE_SYSTEM))
         {
-            if (DeviceObject->DeviceType == FILE_DEVICE_DFS || DeviceObject->DeviceType == FILE_DEVICE_DFS_FILE_SYSTEM)
-            {
-                Status = DfsFsdCreate(DeviceObject, Irp);
-            }
+            Status = DfsFsdCreate(DeviceObject, Irp);
         }
         else
         {