From 8872d5ee1462e6d5de2151245b4c7cdc0cd165a7 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 15 May 2025 13:04:19 -0500 Subject: [PATCH] frontend: Fix superficial bug in VRR handling We should just return 0 on success, not return some enum with a value that happens to be initialized to something that resolves to 0. Signed-off-by: Derek Foreman --- frontend/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/main.c b/frontend/main.c index cfcd83083..4814366c4 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -2006,7 +2006,7 @@ wet_output_set_vrr_mode(struct weston_output *output, weston_config_section_get_string(section, "vrr-mode", &vrr_str, NULL); if (!vrr_str) - return vrr_mode; + return 0; entry = weston_enum_map_find_name(vrr_modes, vrr_str); if (!entry) {