Skip to content

Commit 305e330

Browse files
committed
btl/tcp: fix compiler warnings
Remove now-unused code and unused variable. Signed-off-by: Jeff Squyres <[email protected]>
1 parent a242857 commit 305e330

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

opal/mca/btl/tcp/btl_tcp_component.c

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2007-2015 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2007-2017 Cisco Systems, Inc. All rights reserved
1414
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
1515
* Copyright (c) 2009 Oak Ridge National Laboratory
1616
* Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
@@ -409,40 +409,6 @@ static int mca_btl_tcp_component_close(void)
409409
mca_common_cuda_fini();
410410
#endif /* OPAL_CUDA_SUPPORT */
411411

412-
#if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD
413-
OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_frag_eager_mutex);
414-
OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_frag_max_mutex);
415-
416-
if( (NULL != mca_btl_tcp_event_base) &&
417-
(mca_btl_tcp_event_base != opal_sync_event_base) ) {
418-
/* Turn of the progress thread before moving forward */
419-
if( -1 != mca_btl_tcp_progress_thread_trigger ) {
420-
mca_btl_tcp_progress_thread_trigger = 0;
421-
/* Let the progress thread know that we're going away */
422-
if( -1 != mca_btl_tcp_pipe_to_progress[1] ) {
423-
close(mca_btl_tcp_pipe_to_progress[1]);
424-
mca_btl_tcp_pipe_to_progress[1] = -1;
425-
}
426-
while( -1 != mca_btl_tcp_progress_thread_trigger ) {
427-
/*event_base_loopbreak(mca_btl_tcp_event_base);*/
428-
sched_yield();
429-
usleep(100); /* give app a chance to re-enter library */
430-
}
431-
}
432-
opal_event_del(&mca_btl_tcp_component.tcp_recv_thread_async_event);
433-
opal_event_base_free(mca_btl_tcp_event_base);
434-
mca_btl_tcp_event_base = NULL;
435-
436-
/* Close the remaining pipes */
437-
if( -1 != mca_btl_tcp_pipe_to_progress[0] ) {
438-
close(mca_btl_tcp_pipe_to_progress[0]);
439-
mca_btl_tcp_pipe_to_progress[0] = -1;
440-
}
441-
}
442-
OBJ_DESTRUCT(&mca_btl_tcp_ready_frag_mutex);
443-
OBJ_DESTRUCT(&mca_btl_tcp_ready_frag_pending_queue);
444-
#endif
445-
446412
return OPAL_SUCCESS;
447413
}
448414

opal/mca/btl/tcp/btl_tcp_proc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_lookup(const opal_process_name_t *name)
763763
if (OPAL_UNLIKELY(NULL == proc)) {
764764
mca_btl_base_endpoint_t *endpoint;
765765
opal_proc_t *opal_proc;
766-
int rc;
767766

768767
BTL_VERBOSE(("adding tcp proc for unknown peer {.jobid = 0x%x, .vpid = 0x%x}",
769768
name->jobid, name->vpid));

0 commit comments

Comments
 (0)