Commit 188512bf authored by David Johnson's avatar David Johnson

Fix a couple parenthesis warnings in assertions.

parent f4303a38
Pipeline #1936 failed with stage
......@@ -910,7 +910,7 @@ int cn_membrane_grant(cn_cnode_meta_t * send_meta,
cn_cnode_meta_t * _allocated_meta = NULL;
if (send_meta == NULL || recv_meta == NULL) {
assert(send_meta != NULL || recv_meta != NULL &&
assert((send_meta != NULL || recv_meta != NULL) &&
"Either sender meta or recv meta must not be null");
if (cn_cnode_meta_new(&_allocated_meta) != 0) {
cncerr("send or recv meta not given and allocating meta failed\n");
......@@ -1950,7 +1950,7 @@ static int cn_rp_recv_injected(struct cnode * rp, struct cn_rp_elem * e,
static int cn_rp_recv_membrane(struct cnode *rp, struct cn_rp_elem *e,
cptr_t * recv_cap, cn_objtype_t *type) {
assert(cn_rp_elem_is_membrane(e) || cn_rp_elem_is_normal(e) &&
assert((cn_rp_elem_is_membrane(e) || cn_rp_elem_is_normal(e)) &&
"rp_elem must be normal or membrane when doing a membrane recv");
cn_cnode_meta_t * send_meta = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment