- 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

@@ -32,7 +32,6 @@ hw_caps_t *get_hwcaps(void)
if (access("/dev/dvb/adapter0/video1", F_OK) != -1)
caps.can_pip = 1;
initialized = 1;
caps.has_CI = 0;
caps.can_cec = 1;
caps.can_cpufreq = 1;
@@ -176,5 +175,7 @@ hw_caps_t *get_hwcaps(void)
tmp = "(NO STB_ID FOUND)";
strcpy(caps.boxname, tmp);
}
initialized = 1;
return &caps;
}