frontend: avoid unecessary call to get_section()

We already get the core section a few lines above, and no other call
get_section() call are made in between.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2025-07-02 20:45:55 -03:00
parent e77ca25a80
commit 996ec58ce3

View file

@ -3472,7 +3472,6 @@ load_drm_backend(struct weston_compositor *c, int *argc, char **argv,
config.renderer = renderer;
}
section = weston_config_get_section(wc, "core", NULL, NULL);
weston_config_section_get_string(section,
"gbm-format", &config.gbm_format,
NULL);