- hw_caps: simplify and unify initialized handling

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-29 20:49:47 +02:00
committed by Thilo Graf
parent 94909d2085
commit 5d10ee9095
6 changed files with 13 additions and 37 deletions

View File

@@ -30,7 +30,6 @@ hw_caps_t *get_hwcaps(void)
if (access("/dev/dvb/adapter0/video1", F_OK) != -1)
caps.can_pip = 1;
initialized = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT;
@@ -51,5 +50,6 @@ hw_caps_t *get_hwcaps(void)
else
fprintf(stderr, "%s: uname() failed: %m\n", __func__);
initialized = 1;
return &caps;
}