diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:45:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:45:34 +0000 |
commit | 749efe961f0e1a71461a9c79e6e4584d35af6e7f (patch) | |
tree | c953c007cbe4f60a147ab62f97937d58abb2e9ca /plugins/wdc/wdc-utils.c | |
parent | Adding upstream version 2.7.1. (diff) | |
download | nvme-cli-749efe961f0e1a71461a9c79e6e4584d35af6e7f.tar.xz nvme-cli-749efe961f0e1a71461a9c79e6e4584d35af6e7f.zip |
Adding upstream version 2.8.upstream/2.8
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/wdc/wdc-utils.c')
-rw-r--r-- | plugins/wdc/wdc-utils.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/wdc/wdc-utils.c b/plugins/wdc/wdc-utils.c index be2ef06..414a06a 100644 --- a/plugins/wdc/wdc-utils.c +++ b/plugins/wdc/wdc-utils.c @@ -192,15 +192,5 @@ bool wdc_CheckUuidListSupport(struct nvme_dev *dev, struct nvme_id_uuid_list *uu bool wdc_UuidEqual(struct nvme_id_uuid_list_entry *entry1, struct nvme_id_uuid_list_entry *entry2) { - int i; - - for (i = 0; i < 16; i++) { - if (entry1->uuid[i] != entry2->uuid[i]) - break; - } - - if (i == 16) - return true; - else - return false; + return !memcmp(entry1, entry2, NVME_UUID_LEN); } |