zonefs: Replace uuid_copy() with import_uuid()

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>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
Andy Shevchenko 2020-04-23 18:32:11 +03:00 committed by Damien Le Moal
parent 6a8b55ed40
commit 568776f992

View File

@ -1267,7 +1267,7 @@ static int zonefs_read_super(struct super_block *sb)
goto unmap;
}
uuid_copy(&sbi->s_uuid, (uuid_t *)super->s_uuid);
import_uuid(&sbi->s_uuid, super->s_uuid);
ret = 0;
unmap: