From 82f86519254ea25136ee60e4de915c14e10417f7 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 6 Jul 2021 22:52:05 +0200 Subject: [PATCH] - simple-display: remove obsolete file_exists() checks Signed-off-by: Thilo Graf --- src/driver/simple_display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 215cae547..be97bdf4a 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -481,7 +481,7 @@ void CLCD::setMode(const MODES m, const char * const title) mode = m; setlcdparameter(); - if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + if (g_info.hw_caps->display_type == HW_DISPLAY_NONE) proc_put("/proc/stb/power/powerled", "on"); proc_put("/proc/stb/lcd/show_symbols", true); switch (m) { @@ -503,7 +503,7 @@ void CLCD::setMode(const MODES m, const char * const title) case MODE_SHUTDOWN: showclock = false; Clear(); - if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + if (g_info.hw_caps->display_type == HW_DISPLAY_NONE) proc_put("/proc/stb/power/powerled", "off"); proc_put("/proc/stb/lcd/show_symbols", false); break; @@ -514,7 +514,7 @@ void CLCD::setMode(const MODES m, const char * const title) setled(0, 1); showclock = true; showTime(true); - if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + if (g_info.hw_caps->display_type == HW_DISPLAY_NONE) proc_put("/proc/stb/power/powerled", "off"); proc_put("/proc/stb/lcd/show_symbols", false); timeout_cnt = 0;