From 029e48a8c2982ff4a60a7e75682e88daa40994fb Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 6 Jul 2023 22:00:16 -0700 Subject: modules/rkt: omit unnecessary return variable trivial simplification --- src/modules/rkt/rkt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c index ab9d460..3fa471a 100644 --- a/src/modules/rkt/rkt.c +++ b/src/modules/rkt/rkt.c @@ -228,10 +228,7 @@ static til_module_context_t * rkt_create_context(const til_module_t *module, til til_stream_set_hooks(stream, &rkt_stream_hooks, ctxt); for (size_t i = 0; i < ctxt->n_scenes; i++) { - int r; - - r = til_module_create_context(s->scenes[i].module, stream, rand_r(&seed), ticks, 0, s->scenes[i].setup, &ctxt->scenes[i].module_ctxt); - if (r < 0) + if (til_module_create_context(s->scenes[i].module, stream, rand_r(&seed), ticks, 0, s->scenes[i].setup, &ctxt->scenes[i].module_ctxt) < 0) return til_module_context_free(&ctxt->til_module_context); } -- cgit v1.2.3