From 09f4a16838b6c81060660514b9211e751984c6d8 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Fri, 15 Dec 2023 19:04:42 +0100 Subject: [PATCH] client/server: remove dead code The issue was found by Red Hat's OpenScanHub: fio-3.35/server.c:1884:3: warning[deadcode.DeadStores]: Value stored to 'extended_buf_wp' is never read Signed-off-by: Pavel Reichl --- server.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server.c b/server.c index 06eac5840f..b9f0e2ac3c 100644 --- a/server.c +++ b/server.c @@ -1883,7 +1883,6 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs) offset = (char *)extended_buf_wp - (char *)extended_buf; ptr->ts.ss_bw_data_offset = cpu_to_le64(offset); - extended_buf_wp = ss_bw + (int) ts->ss_dur; } fio_net_queue_cmd(FIO_NET_CMD_TS, extended_buf, extended_buf_size, NULL, SK_F_COPY);