From 8bfca88f0e9464cf4a421499aada61e69066784c Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 4 Oct 2018 20:36:13 -0500 Subject: gpu_util: use vendor_get_shortest_name() instead of vendor_match() Signed-off-by: Burt P --- hardinfo/gpu_util.c | 6 ++---- 1 file 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 */ -- cgit v1.2.3