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

Fab Tillier ftillier at windows.microsoft.com
Mon Feb 23 12:05:53 PST 2009


Oops, you're right.

> -----Original Message-----
> From: Sean Hefty [mailto:sean.hefty at intel.com]
> Sent: Monday, February 23, 2009 12:05 PM
> To: Fab Tillier
> Cc: ofw at lists.openfabrics.org
> Subject: RE: [PATCH] WV: Minor cleanup EP code
>
> >        if (NT_SUCCESS(status)) {
> >                status = WdfRequestForwardToIoQueue(Request,
> pEndpoint->Queue);
> >-       }
> >-
> >-       if (!NT_SUCCESS(status)) {
> >+       } else {
> >                pEndpoint->State = WvEpDisconnected;
> >        }
>
> This is not the same.  The value of status can change inside the if.




More information about the ofw mailing list