From 996ec58ce326f8cbd894a1c654e0327abce57333 Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Wed, 2 Jul 2025 20:45:55 -0300 Subject: [PATCH] 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 --- frontend/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/main.c b/frontend/main.c index 23ccdc4db..7718d45b3 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -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);