Skip to content

Commit

Permalink
client/server: remove dead code
Browse files Browse the repository at this point in the history
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 <preichl@redhat.com>
  • Loading branch information
preichl committed Dec 15, 2023
1 parent 922ce62 commit 09f4a16
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 09f4a16

Please sign in to comment.