From ad1a477852904d43d67dae25c626e1d523c3e27f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 14 Jun 2023 22:33:39 +0200 Subject: [PATCH] play: Remove pointless goto in play_post_monitor(). We may as well return directly. --- play.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/play.c b/play.c index 4f734a3f..4ad83a40 100644 --- 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; } /** -- 2.39.2