aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-12 12:14:13 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-09-12 14:59:58 -0700
commit090aca55bda549a1c80bae8f4770de330b88b4bd (patch)
treef38e90c113cd12f5c5830bb3fbe99f10ad77e90f /src/core/lib/surface
parent52778c4729ae4e59eadae3bb49728967f397eb6f (diff)
Using already type casted variables
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r--src/core/lib/surface/call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c
index f4e11025b1..de5aa7b6be 100644
--- a/src/core/lib/surface/call.c
+++ b/src/core/lib/surface/call.c
@@ -549,8 +549,8 @@ static void destroy_call(grpc_exec_ctx *exec_ctx, void *call,
GRPC_CQ_INTERNAL_UNREF(exec_ctx, c->cq, "bind");
}
- get_final_status((grpc_call *)call, set_status_value_directly,
- &c->final_info.final_status, NULL);
+ get_final_status(c, set_status_value_directly, &c->final_info.final_status,
+ NULL);
c->final_info.stats.latency =
gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), c->start_time);
@@ -1475,7 +1475,7 @@ static void receiving_stream_ready(grpc_exec_ctx *exec_ctx, void *bctlp,
* acq_load is in receiving_initial_metadata_ready() */
if (error != GRPC_ERROR_NONE || call->receiving_stream == NULL ||
!gpr_atm_rel_cas(&call->recv_state, RECV_NONE, (gpr_atm)bctlp)) {
- process_data_after_md(exec_ctx, (batch_control *)bctlp);
+ process_data_after_md(exec_ctx, bctl);
}
}