]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
play: Remove pointless goto in play_post_monitor().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Jun 2023 20:33:39 +0000 (22:33 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 19 Apr 2024 18:41:23 +0000 (20:41 +0200)
We may as well return directly.

play.c

diff --git a/play.c b/play.c
index 4f734a3f729c526b8b319edbf2a477c636e2abe6..4ad83a40c2f14b8bdb7eecd5eb796555a25a977e 100644 (file)
--- a/play.c
+++ b/play.c
@@ -1186,8 +1186,7 @@ static int play_post_monitor(struct sched *s, __a_unused void *context)
                        if (ret < 0) {
                                PARA_ERROR_LOG("%s\n", para_strerror(-ret));
                                pt->rq = CRT_TERM_RQ;
-                               ret = 1;
-                               goto out;
+                               return 1;
                        }
                        pt->next_update = *now;
                }
@@ -1201,9 +1200,7 @@ static int play_post_monitor(struct sched *s, __a_unused void *context)
                free(str);
                tv_add(now, &delay, &pt->next_update);
        }
-       ret = 1;
-out:
-       return ret;
+       return 1;
 }
 
 /**