Skip to content
Snippets Groups Projects
Commit bc163c20 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jens Axboe
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fe35ec58
No related branches found
No related tags found
No related merge requests found
...@@ -910,7 +910,7 @@ static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb) ...@@ -910,7 +910,7 @@ static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
return false; return false;
disk = &vb->vblk.disk; 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; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment