diff options
author | Burt P <pburt0@gmail.com> | 2019-08-09 21:23:06 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-10 16:47:44 -0700 |
commit | d89c22611893dcc1cde0ff36d2490f2fd6273e57 (patch) | |
tree | b84051a56df376a38766354d1aba628e117c08db /hardinfo/gpu_util.c | |
parent | 39db0d3af0ff9f7c55cdee988733fb0b3c0023c4 (diff) |
gpu_util: fix intel nice name
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/gpu_util.c')
-rw-r--r-- | hardinfo/gpu_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |