backend: Remove two superfluous casts
authorBart Van Assche <bvanassche@acm.org>
Fri, 4 Sep 2020 23:06:07 +0000 (16:06 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sat, 12 Sep 2020 01:20:32 +0000 (18:20 -0700)
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 <bvanassche@acm.org>
backend.c

index 05453ae2dea1fd0105ce49414fb49bfdf7b383ff..c7a027e75f7f60234645cc058732faab1b32758d 100644 (file)
--- 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);