From 22b240d6b3f81b426d7c34680bc0ca628ceb93c2 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 03:02:38 +0100 Subject: FIX GCC warnings - always true --- modules/devices/dmi_memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/devices') diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index 8d2ecadf..eba26c8b 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -393,13 +393,15 @@ static void dmi_fill_from_spd(dmi_mem_socket *s) { s->has_jedec_mfg_id = TRUE; } - if (!s->partno && s->spd->partno) + //Always true - FIXME + //if (!s->partno && s->spd->partno) s->partno = g_strdup(s->spd->partno); if (!s->form_factor && s->spd->form_factor) s->form_factor = g_strdup(s->spd->form_factor); - if (!s->type_detail && s->spd->type_detail) + //Always true - FIXME + //if (!s->type_detail && s->spd->type_detail) s->type_detail = g_strdup(s->spd->type_detail); } -- cgit v1.2.3