From d89c22611893dcc1cde0ff36d2490f2fd6273e57 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 9 Aug 2019 21:23:06 -0500 Subject: gpu_util: fix intel nice name Signed-off-by: Burt P --- hardinfo/gpu_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hardinfo') diff --git a/hardinfo/gpu_util.c b/hardinfo/gpu_util.c index 6bf2ac2d..b203b426 100644 --- a/hardinfo/gpu_util.c +++ b/hardinfo/gpu_util.c @@ -234,9 +234,7 @@ static void make_nice_name(gpud *s) { nice_name_intel_gpu_device(device_str_clean); s->nice_name = g_strdup_printf("%s %s", vendor_str, device_str_clean); g_free(device_str_clean); - } - - if (strstr(vendor_str, "AMD")) { + } else if (strstr(vendor_str, "AMD")) { /* AMD PCI strings are crazy stupid because they use the exact same * chip and device id for a zillion "different products" */ char *full_name = strdup(device_str); -- cgit v1.2.3