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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2025-05-15 13:04:19 -05:00
parent 978052f9ed
commit 8872d5ee14

View file

@ -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) {