aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-08-25 11:12:39 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-08-27 08:21:05 -0700
commitb955821b18f7f5a9ee4a5d417fab8b2757f8a2fa (patch)
treee46ff555183f95eca65c7e7a5f2c894cd6615deb /modules/computer.c
parent57df57ff60f4994b3273767cb3695336788ec61e (diff)
dmi: requested changes
Change requested by lpereira in https://github.com/lpereira/hardinfo/pull/160 Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 388c305a..c7581be4 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -308,14 +308,14 @@ static gchar *detect_machine_type(void)
gchar *chassis;
chassis = dmi_chassis_type_str(-1, 0);
- if (chassis != NULL)
+ if (chassis)
return chassis;
chassis = dtr_get_string("/model", 0);
if (chassis) {
if (strstr(chassis, "Raspberry Pi") != NULL
|| strstr(chassis, "ODROID") != NULL
- /* etc */ ) {
+ /* FIXME: consider making a table when adding more models */ ) {
g_free(chassis);
return g_strdup(_("Single-board computer"));
}