Skip to content

Commit

Permalink
partitions/ldm: Replace uuid_copy() with import_uuid() where it makes…
Browse files Browse the repository at this point in the history
… 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]>
  • Loading branch information
andy-shev authored and axboe committed Jun 18, 2020
1 parent fe35ec5 commit bc163c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/partitions/ldm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bc163c2

Please sign in to comment.