summaryrefslogtreecommitdiffstats
path: root/block/partitions/ldm.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-04-22 15:03:17 +0200
committerJens Axboe <axboe@kernel.dk>2020-06-18 17:17:54 +0200
commitbc163c2046c5867df7d2b03e85bca29adf83fa32 (patch)
tree64aefeb280bfb90a1f2cbf6e60a2949610aac58d /block/partitions/ldm.c
parentblock: update hctx map when use multiple maps (diff)
downloadlinux-bc163c2046c5867df7d2b03e85bca29adf83fa32.tar.xz
linux-bc163c2046c5867df7d2b03e85bca29adf83fa32.zip
partitions/ldm: Replace uuid_copy() with import_uuid() where it makes sense
There is a specific API to treat raw data as UUID, i.e. import_uuid(). Use it instead of uuid_copy() with explicit casting. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--block/partitions/ldm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/ldm.c b/block/partitions/ldm.c
index 6fdfcb40c537..d333786b5c7e 100644
--- a/block/partitions/ldm.c
+++ b/block/partitions/ldm.c
@@ -910,7 +910,7 @@ static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
return false;
disk = &vb->vblk.disk;
- uuid_copy(&disk->disk_id, (uuid_t *)(buffer + 0x18 + r_name));
+ import_uuid(&disk->disk_id, buffer + 0x18 + r_name);
return true;
}