From 1f125c5a8ead5472eb16d23a42bc9fe4b1092369 Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Tue, 8 Aug 2023 11:04:38 -0700 Subject: [PATCH] out_kinesis_streams: remove dead stores `tmp_size` is assigned twice where each of the assignments are not used. Signed-off-by: David Korczynski --- plugins/out_kinesis_streams/kinesis_api.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/out_kinesis_streams/kinesis_api.c b/plugins/out_kinesis_streams/kinesis_api.c index 664e4fe4dad..9124657bc19 100644 --- a/plugins/out_kinesis_streams/kinesis_api.c +++ b/plugins/out_kinesis_streams/kinesis_api.c @@ -309,8 +309,6 @@ static int process_event(struct flb_kinesis *ctx, struct flush *buf, time_key_ptr += strlen(ctx->time_key); memcpy(time_key_ptr, "\":\"", 3); time_key_ptr += 3; - tmp_size = buf->tmp_buf_size - buf->tmp_buf_offset; - tmp_size -= (time_key_ptr - tmp_buf_ptr); /* merge out_buf to time_key_ptr */ memcpy(time_key_ptr, out_buf, len);