mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
- hw_caps: simplify and unify initialized handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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 ∩︀
|
||||
}
|
||||
|
Reference in New Issue
Block a user