aboutsummaryrefslogtreecommitdiff
path: root/hardinfo
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-10-04 20:36:13 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-11-04 15:02:12 -0800
commit8bfca88f0e9464cf4a421499aada61e69066784c (patch)
tree030b1585df06909d10d414b810641c5a427324cc /hardinfo
parent8546e4b64bf2e05613c26d1e7f797adabe23481a (diff)
gpu_util: use vendor_get_shortest_name() instead of vendor_match()
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo')
-rw-r--r--hardinfo/gpu_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hardinfo/gpu_util.c b/hardinfo/gpu_util.c
index ba72b907..cae15f91 100644
--- a/hardinfo/gpu_util.c
+++ b/hardinfo/gpu_util.c
@@ -154,11 +154,9 @@ static void make_nice_name(gpud *s) {
device_str = unk_d;
/* try and a get a "short name" for the vendor */
- const Vendor *v = vendor_match(vendor_str, NULL);
- if (v && v->name_short && *v->name_short != 0)
- vendor_str = v->name_short;
+ vendor_str = vendor_get_shortest_name(vendor_str);
- /* These two former special cases are currently handled by the vendor_match()
+ /* These two former special cases are currently handled by the vendor_get_shortest_name()
* function well enough, but the notes are preserved here. */
/* nvidia PCI strings are pretty nice already,
* just shorten the company name */