Write queue after connect windows

On 10/20/2014 10:50 AM, Andrius Bentkus wrote:
> In src/win/pipe.c:
> 
>> @@ -1724,6 +1758,30 @@ void uv_process_pipe_accept_req(uv_loop_t* loop, uv_pipe_t* handle,
>>  }
>>  
>>  
>> +INLINE static void uv__pipe_do_write(uv_stream_t* stream) {
>> +  uv_write_t* req;
>> +  int err;
>> +  QUEUE *q;
>> +
>> +  while (!QUEUE_EMPTY(&stream->write_queue)) {
>> +    q = QUEUE_HEAD(&stream->write_queue);
>> +    QUEUE_REMOVE(q);
>> +
>> +    req = QUEUE_DATA(q, uv_write_t, queue);
>> +
>> +    err = uv__pipe_write_impl_req(req, req->bufs, req->nbufs);
>> +
>> +    if (err && req->cb != NULL) {
> 
> Should I use /req->cb/ or /req->cb != NULL/?
> 
> I think the former is the correct one, because that is most commonly
> used throughout the code base.
> 

Both are correct, so go with the one used more consistently throughout
the code.