Commit 568776f9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Damien Le Moal
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
parent 6a8b55ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: