From 4fe5d27046752dba8021924f1a1f02dd07097fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Tue, 21 May 2024 21:50:50 +0200 Subject: [PATCH] #2264: simplify ternary expression --- src/vt/rdma/channel/rdma_channel.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vt/rdma/channel/rdma_channel.cc b/src/vt/rdma/channel/rdma_channel.cc index 528e3a3a5b..afd2db3698 100644 --- a/src/vt/rdma/channel/rdma_channel.cc +++ b/src/vt/rdma/channel/rdma_channel.cc @@ -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,