From 1b8075a549fbb96e963b34bb8cc59ece3aca62f0 Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Wed, 18 Dec 2024 17:09:35 +0100 Subject: [PATCH] Fix previous commit --- lib/device/device_id.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/device/device_id.c b/lib/device/device_id.c index d856dd67f..ae0349158 100644 --- a/lib/device/device_id.c +++ b/lib/device/device_id.c @@ -885,9 +885,11 @@ const char *device_id_system_read(struct cmd_context *cmd, struct device *dev, u return strdup(dw->id); } return NULL; - case DEV_ID_TYPE_NVME_EUI64: - case DEV_ID_TYPE_NVME_NGUID: - case DEV_ID_TYPE_NVME_UUID: + } + + else if (idtype == DEV_ID_TYPE_NVME_EUI64 || + idtype == DEV_ID_TYPE_NVME_NGUID || + idtype == DEV_ID_TYPE_NVME_UUID) { if (!(dev->flags & DEV_ADDED_NVME_WWIDS)) dev_read_nvme_wwids(dev); dm_list_iterate_items(dw, &dev->wwids) {