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

@@ -30,7 +30,6 @@ hw_caps_t *get_hwcaps(void)
else
caps.can_pip = 0;
initialized = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT;
@@ -42,5 +41,6 @@ hw_caps_t *get_hwcaps(void)
strcpy(caps.boxvendor, "Raspberry");
strcpy(caps.boxname, "Pi");
initialized = 1;
return &caps;
}