From 627ebd31f52762c24d11dcb7f6f732999e334960 Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 1 Jan 2020 14:22:26 -0600 Subject: storage: just don't put vendor in the label for now Signed-off-by: Burt P --- modules/devices/storage.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'modules') diff --git a/modules/devices/storage.c b/modules/devices/storage.c index 2e969062..b4e34994 100644 --- a/modules/devices/storage.c +++ b/modules/devices/storage.c @@ -195,16 +195,12 @@ gboolean __scan_udisks2_devices(void) { disk = (udiskd *)node->data; devid = g_strdup_printf("UDISKS%d", n++); - if (disk->vendor && strlen(disk->vendor) > 0) { - label = g_strdup_printf("%s %s", disk->vendor, disk->model); + if (disk->vendor && strlen(disk->vendor) > 0) vendor_str = disk->vendor; - } - else{ - label = g_strdup(disk->model); - /* try and pull one out of the model */ - const Vendor *v = vendor_match(disk->model, NULL); - vendor_str = v ? v->name : _("(Unknown)"); - } + else + vendor_str = _("(Unknown)"); + + label = g_strdup(disk->model); icon = NULL; -- cgit v1.2.3