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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent fe35ec5 commit bc163c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)