Skip to content

Commit f37b451

Browse files
andy-shevdjbw
authored andcommitted
libnvdimm: Replace guid_copy() with import_guid() where it makes sense
There is a specific API to treat raw data as GUID, i.e. import_guid(). Use it instead of guid_copy() with explicit casting. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent ae83d0b commit f37b451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/nfit/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc,
22932293
nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
22942294
if (!nd_set)
22952295
return -ENOMEM;
2296-
guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
2296+
import_guid(&nd_set->type_guid, spa->range_guid);
22972297

22982298
info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
22992299
if (!info)

0 commit comments

Comments
 (0)