[ofw] [PATCH] WV: Minor cleanup EP code

Fab Tillier ftillier at windows.microsoft.com
Mon Feb 23 12:00:31 PST 2009


This patch cleans up an if-else...

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

Index: core/winverbs/kernel/wv_ep.c
===================================================================
--- core/winverbs/kernel/wv_ep.c        (revision 1978)
+++ core/winverbs/kernel/wv_ep.c        (working copy)
@@ -674,9 +674,7 @@ static NTSTATUS WvEpAcceptPassive(WDFREQ
        status = IbCmInterface.CM.send_rep(pEndpoint->pIbCmId, &rep);
        if (NT_SUCCESS(status)) {
                status = WdfRequestForwardToIoQueue(Request, pEndpoint->Queue);
-       }
-
-       if (!NT_SUCCESS(status)) {
+       } else {
                pEndpoint->State = WvEpDisconnected;
        }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wv_ep.patch
Type: application/octet-stream
Size: 529 bytes
Desc: wv_ep.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090223/499c9e24/attachment.obj>


More information about the ofw mailing list