nvme: Fix the Samsung vendor to avoid showing junk in the UI

This commit is contained in:
Richard Hughes 2021-11-09 12:34:46 +00:00
parent ae278e1b80
commit 683fae6be3

View File

@ -275,6 +275,10 @@ fu_nvme_device_probe(FuDevice *device, GError **error)
if (!FU_DEVICE_CLASS(fu_nvme_device_parent_class)->probe(device, error))
return FALSE;
/* fix up vendor name so we can remove it from the product name */
if (g_strcmp0(fu_device_get_vendor(FU_DEVICE(device)), "Samsung Electronics Co Ltd") == 0)
fu_device_set_vendor(FU_DEVICE(device), "Samsung");
/* set the physical ID */
if (!fu_udev_device_set_physical_id(FU_UDEV_DEVICE(device), "pci", error))
return FALSE;