Skip to contentSkip to conversation

ui/egl-headless: Remove a check for CONFIG_OPENGL

PATCH In review Akihiko Odaki 2 participants 2 messages Jul 14, 2021 – Jul 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui/egl-headless: Remove a check for CONFIG_OPENGL

ui/egl-headless is only built when CONFIG_OPENGL is defined because it depends on CONFIG_OPENGL without condition. Remove a redundant conditonal in ui/egl-headless.c

---
 ui/egl-headless.c | 2 --
 1 file changed, 2 deletions(-)
ui/egl-headless.c +0 -2
index 75404e0e870..a26a2520c49 100644
@@ -214,6 +214,4 @@ static void register_egl(void)
 
 type_init(register_egl);
 
-#ifdef CONFIG_OPENGL
 module_dep("ui-opengl");
-#endif
Signature · 1 line
2.30.1 (Apple Git-130)
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Akihiko Odaki

ui/egl-headless is only built when CONFIG_OPENGL is defined because it depends on CONFIG_OPENGL without condition. Remove a redundant conditonal in ui/egl-headless.c

---

Quoted 19 lines
 ui/egl-headless.c | 2 --
 1 file changed, 2 deletions(-)
ui/egl-headless.c +0 -3
index 75404e0e870..a26a2520c49 100644
@@ -214,6 +214,4 @@ static void register_egl(void)
 
 type_init(register_egl);
 
-#ifdef CONFIG_OPENGL
 module_dep("ui-opengl");
-#endif
--

2.30.1 (Apple Git-130)

Signature · 1 line
Marc-André Lureau