diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-02-14 13:31:03 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-15 07:27:24 +0300 |
commit | f4b64ae6745177642cd9610cfd7df0041e7fca58 (patch) | |
tree | 2bc39d263f39e8daaab07277168e471973e97508 /drivers/lightnvm/pblk-recovery.c | |
parent | 4cf29e43afc0dea7ccf6b09a20bd598fad47bf60 (diff) | |
download | linux-f4b64ae6745177642cd9610cfd7df0041e7fca58.tar.xz |
lightnvm: pblk: Replace guid_copy() with export_guid()/import_guid()
There is a specific API to treat raw data as GUID, i.e. export_guid()
and import_guid(). Use them instead of guid_copy() with explicit casting.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-recovery.c')
-rw-r--r-- | drivers/lightnvm/pblk-recovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index 299ef47a17b2..0e6f0c76e930 100644 --- a/drivers/lightnvm/pblk-recovery.c +++ b/drivers/lightnvm/pblk-recovery.c @@ -706,8 +706,7 @@ struct pblk_line *pblk_recov_l2p(struct pblk *pblk) /* The first valid instance uuid is used for initialization */ if (!valid_uuid) { - guid_copy(&pblk->instance_uuid, - (guid_t *)&smeta_buf->header.uuid); + import_guid(&pblk->instance_uuid, smeta_buf->header.uuid); valid_uuid = 1; } |