Skip to content

Commit 5ca231c

Browse files
committed
btl_base_am_rdma.c: fix typos identified by Coverity
Static analysis found a few typos in 7b177ce: "&&" should have been "&". Fixes CIDs 1494439 and 1494440. Signed-off-by: Jeff Squyres <[email protected]>
1 parent ed05ee1 commit 5ca231c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/btl/base/btl_base_am_rdma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static inline int mca_btl_base_am_rdma_advance(mca_btl_base_module_t *btl,
410410
}
411411

412412
if (send_descriptor) {
413-
assert(0 != (descriptor->des_flags && MCA_BTL_DES_SEND_ALWAYS_CALLBACK));
413+
assert(0 != (descriptor->des_flags & MCA_BTL_DES_SEND_ALWAYS_CALLBACK));
414414
ret = btl->btl_send(btl, endpoint, descriptor, mca_btl_base_rdma_tag(hdr->type));
415415
if (ret == 1) {
416416
ret = OPAL_SUCCESS;
@@ -800,7 +800,7 @@ static int mca_btl_base_am_rdma_progress(void)
800800
mca_btl_base_rdma_context_t *context = \
801801
(mca_btl_base_rdma_context_t *) \
802802
descriptor->descriptor->des_context; \
803-
assert(0 != (descriptor->descriptor->des_flags && MCA_BTL_DES_SEND_ALWAYS_CALLBACK)); \
803+
assert(0 != (descriptor->descriptor->des_flags & MCA_BTL_DES_SEND_ALWAYS_CALLBACK)); \
804804
int ret = descriptor->btl->btl_send(descriptor->btl, \
805805
descriptor->endpoint, \
806806
descriptor->descriptor, \

0 commit comments

Comments
 (0)