summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-06 22:00:16 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-06 22:00:16 -0700
commit029e48a8c2982ff4a60a7e75682e88daa40994fb (patch)
tree9ef7cc5d522b49e61b0dc1147ad74463d4892b2c /src
parent32ff4cabe80a1ec7ba7f72cbc2dd46ac921682da (diff)
modules/rkt: omit unnecessary return variable
trivial simplification
Diffstat (limited to 'src')
-rw-r--r--src/modules/rkt/rkt.c5
1 files changed, 1 insertions, 4 deletions
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);
}
© All Rights Reserved