Skip to content

Commit 568776f

Browse files
andy-shevdamien-lemoal
authored andcommitted
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 <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 6a8b55e commit 568776f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/zonefs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static int zonefs_read_super(struct super_block *sb)
12671267
goto unmap;
12681268
}
12691269

1270-
uuid_copy(&sbi->s_uuid, (uuid_t *)super->s_uuid);
1270+
import_uuid(&sbi->s_uuid, super->s_uuid);
12711271
ret = 0;
12721272

12731273
unmap:

0 commit comments

Comments
 (0)