From: Bart Van Assche Date: Fri, 4 Sep 2020 23:06:07 +0000 (-0700) Subject: backend: Remove two superfluous casts X-Git-Tag: fio-3.24~27^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0518f09fff6004b2c42856cc3700c4d20e62470f;p=fio.git backend: Remove two superfluous casts Casting the type of a string constant to (const char *) is not necessary. These casts were introduced by commit ce4864950d2c ("backend: Logging exec_{pre|post}run"). Signed-off-by: Bart Van Assche --- diff --git a/backend.c b/backend.c index 05453ae2..c7a027e7 100644 --- a/backend.c +++ b/backend.c @@ -1731,7 +1731,7 @@ static void *thread_main(void *data) if (!init_random_map(td)) goto err; - if (o->exec_prerun && exec_string(o, o->exec_prerun, (const char *)"prerun")) + if (o->exec_prerun && exec_string(o, o->exec_prerun, "prerun")) goto err; if (o->pre_read && !pre_read_files(td)) @@ -1890,7 +1890,7 @@ static void *thread_main(void *data) rate_submit_exit(td); if (o->exec_postrun) - exec_string(o, o->exec_postrun, (const char *)"postrun"); + exec_string(o, o->exec_postrun, "postrun"); if (exitall_on_terminate || (o->exitall_error && td->error)) fio_terminate_threads(td->groupid, td->o.exit_what);