aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/channel/client_channel.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-01 11:31:07 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-01 11:31:07 -0700
commit2e9dc506e70b351c341ffac31abcd9d2de858172 (patch)
tree41ef49b8bc0b692471ec486398e118e7d4684e3d /src/core/channel/client_channel.c
parent62b1473a0d49cbbcfa16b15109cf1597673a3d65 (diff)
Simplify check
Diffstat (limited to 'src/core/channel/client_channel.c')
-rw-r--r--src/core/channel/client_channel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c
index 61fc4222d1..1eab87d714 100644
--- a/src/core/channel/client_channel.c
+++ b/src/core/channel/client_channel.c
@@ -252,10 +252,8 @@ static grpc_iomgr_closure *merge_into_waiting_op(
call_data *calld = elem->call_data;
grpc_iomgr_closure *consumed_op = NULL;
grpc_transport_stream_op *waiting_op = &calld->waiting_op;
- GPR_ASSERT((waiting_op->send_ops == NULL) != (new_op->send_ops == NULL) ||
- waiting_op->send_ops == NULL);
- GPR_ASSERT((waiting_op->recv_ops == NULL) != (new_op->recv_ops == NULL) ||
- waiting_op->recv_ops == NULL);
+ GPR_ASSERT((waiting_op->send_ops != NULL) + (new_op->send_ops != NULL) <= 1);
+ GPR_ASSERT((waiting_op->recv_ops != NULL) + (new_op->recv_ops != NULL) <= 1);
if (new_op->send_ops != NULL) {
waiting_op->send_ops = new_op->send_ops;
waiting_op->is_last_send = new_op->is_last_send;