Fixed Coverity reports 1358014-1358018 (DEADCODE and CHECK_RETURN)
Этот коммит содержится в:
родитель
7cdf50533c
Коммит
92290b94e0
@ -106,7 +106,7 @@ static int mca_pml_ob1_recv_request_cancel(struct ompi_request_t* ompi_request,
|
||||
/* The rest should be protected behind the match logic lock */
|
||||
OB1_MATCHING_LOCK(&ob1_comm->matching_lock);
|
||||
if( true == request->req_match_received ) { /* way to late to cancel this one */
|
||||
OPAL_THREAD_UNLOCK(&ob1_comm->matching_lock);
|
||||
OB1_MATCHING_LOCK(&ob1_comm->matching_lock);
|
||||
assert( OMPI_ANY_TAG != ompi_request->req_status.MPI_TAG ); /* not matched isn't it */
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ extern int mca_btl_tcp_progress_thread_trigger;
|
||||
do { \
|
||||
if(0 < mca_btl_tcp_progress_thread_trigger) { \
|
||||
opal_event_t* _event = (opal_event_t*)(event); \
|
||||
opal_fd_write( mca_btl_tcp_pipe_to_progress[1], sizeof(opal_event_t*), \
|
||||
(void) opal_fd_write( mca_btl_tcp_pipe_to_progress[1], sizeof(opal_event_t*), \
|
||||
&_event); \
|
||||
} \
|
||||
else { \
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user