Author: akhaldi
Date: Fri Sep 5 09:41:25 2014
New Revision: 64037
URL:
http://svn.reactos.org/svn/reactos?rev=64037&view=rev
Log:
[NTOS:LPC]
* Remove unused pointer and logically dead code paths. CID 1237020.
CORE-7975
Modified:
trunk/reactos/ntoskrnl/lpc/reply.c
Modified: trunk/reactos/ntoskrnl/lpc/reply.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/lpc/reply.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/lpc/reply.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/lpc/reply.c [iso-8859-1] Fri Sep 5 09:41:25 2014
@@ -188,7 +188,7 @@
NtReplyPort(IN HANDLE PortHandle,
IN PPORT_MESSAGE ReplyMessage)
{
- PLPCP_PORT_OBJECT Port, ConnectionPort = NULL;
+ PLPCP_PORT_OBJECT Port;
KPROCESSOR_MODE PreviousMode = KeGetPreviousMode();
NTSTATUS Status;
PLPCP_MESSAGE Message;
@@ -256,7 +256,6 @@
{
/* No thread found, fail */
ObDereferenceObject(Port);
- if (ConnectionPort) ObDereferenceObject(ConnectionPort);
return Status;
}
@@ -265,7 +264,6 @@
if (!Message)
{
/* Fail if we couldn't allocate a message */
- if (ConnectionPort) ObDereferenceObject(ConnectionPort);
ObDereferenceObject(WakeupThread);
ObDereferenceObject(Port);
return STATUS_NO_MEMORY;
@@ -282,7 +280,6 @@
{
/* It isn't, fail */
LpcpFreeToPortZone(Message, LPCP_LOCK_HELD | LPCP_LOCK_RELEASE);
- if (ConnectionPort) ObDereferenceObject(ConnectionPort);
ObDereferenceObject(WakeupThread);
ObDereferenceObject(Port);
return STATUS_REPLY_MESSAGE_MISMATCH;