Author: fireball
Date: Mon Sep 5 14:27:48 2011
New Revision: 53598
URL:
http://svn.reactos.org/svn/reactos?rev=53598&view=rev
Log:
[NTOS/EX]
- Remove redundant check for a previous mode. Spotted by PVS.
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Mon Sep 5 14:27:48 2011
@@ -1948,17 +1948,10 @@
FStatus = CallQS [SystemInformationClass].Query(SystemInformation,
Length,
&ResultLength);
- if (UnsafeResultLength != NULL)
- {
- if (PreviousMode != KernelMode)
- {
- *UnsafeResultLength = ResultLength;
- }
- else
- {
- *UnsafeResultLength = ResultLength;
- }
- }
+
+ /* Save the result length to the caller */
+ if (UnsafeResultLength)
+ *UnsafeResultLength = ResultLength;
}
}
_SEH2_EXCEPT(ExSystemExceptionFilter())