1
1

Fixed Coverity reports 1358014-1358018 (DEADCODE and CHECK_RETURN)

Этот коммит содержится в:
Thananon Patinyasakdikul 2016-04-06 14:26:04 -04:00 коммит произвёл George Bosilca
родитель 7cdf50533c
Коммит 92290b94e0
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 */ /* The rest should be protected behind the match logic lock */
OB1_MATCHING_LOCK(&ob1_comm->matching_lock); OB1_MATCHING_LOCK(&ob1_comm->matching_lock);
if( true == request->req_match_received ) { /* way to late to cancel this one */ 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 */ assert( OMPI_ANY_TAG != ompi_request->req_status.MPI_TAG ); /* not matched isn't it */
return OMPI_SUCCESS; return OMPI_SUCCESS;
} }

Просмотреть файл

@ -96,7 +96,7 @@ extern int mca_btl_tcp_progress_thread_trigger;
do { \ do { \
if(0 < mca_btl_tcp_progress_thread_trigger) { \ if(0 < mca_btl_tcp_progress_thread_trigger) { \
opal_event_t* _event = (opal_event_t*)(event); \ 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); \ &_event); \
} \ } \
else { \ else { \