hw_caps: simplify and unify initialized handling

Origin commit data
------------------
Branch: master
Commit: 5ec4e4f22f
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-29 (Sat, 29 May 2021)

Origin message was:
------------------
- hw_caps: simplify and unify initialized handling

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-05-29 20:49:47 +02:00
parent e7578702e0
commit cef23d5de4
6 changed files with 10 additions and 37 deletions

View File

@@ -34,7 +34,6 @@ hw_caps_t *get_hwcaps(void)
else
caps.can_pip = 0;
initialized = 1;
caps.has_CI = 0;
caps.can_cec = 1;
caps.can_cpufreq = 1;
@@ -178,5 +177,7 @@ hw_caps_t *get_hwcaps(void)
tmp = "(NO STB_ID FOUND)";
strcpy(caps.boxname, tmp);
}
initialized = 1;
return &caps;
}