Skip to content

Commit

Permalink
#2264: simplify ternary expression
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs authored and cwschilly committed Sep 20, 2024
1 parent 1eb7186 commit 4fe5d27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vt/rdma/channel/rdma_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ Channel::lockChannelForOp() {
auto const& lock_type =
(not is_target_) ?
(op_type_ == RDMA_TypeType::Put ? MPI_LOCK_EXCLUSIVE : MPI_LOCK_SHARED) :
(op_type_ == RDMA_TypeType::Put ? MPI_LOCK_SHARED : MPI_LOCK_SHARED);
// FIXME: same expression in both branches of ternary operator
MPI_LOCK_SHARED;

vt_debug_print(
normal, rdma_channel,
Expand Down

0 comments on commit 4fe5d27

Please sign in to comment.