Skip to content

Commit bc163c2

Browse files
andy-shevaxboe
authored andcommitted
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>
1 parent fe35ec5 commit bc163c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/partitions/ldm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
910910
return false;
911911

912912
disk = &vb->vblk.disk;
913-
uuid_copy(&disk->disk_id, (uuid_t *)(buffer + 0x18 + r_name));
913+
import_uuid(&disk->disk_id, buffer + 0x18 + r_name);
914914
return true;
915915
}
916916

0 commit comments

Comments
 (0)