diff options
Diffstat (limited to 'modules/computer.c')
-rw-r--r-- | modules/computer.c | 4 |
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")); } |