diff options
author | Simon Glass | 2023-08-24 13:55:31 -0600 |
---|---|---|
committer | Tom Rini | 2023-08-25 17:55:18 -0400 |
commit | c5f1d005f51783a5b34d6164ab66289eb1f4a45b (patch) | |
tree | ce2387e3ccb134d02bfd2c458546c420ca886c53 /fs | |
parent | ade2316da3cd76abe7649d34abb84f1370fb942d (diff) |
part: Add accessors for struct disk_partition uuid
This field is only present when a CONFIG is set. To avoid annoying #ifdefs
in the source code, add accessors. Update all code to use it.
Note that the accessor is optional. It can be omitted if it is known that
the option is enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fat/fat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index d1476aa433d..8ff1fd0ec83 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -110,9 +110,7 @@ int fat_register_device(struct blk_desc *dev_desc, int part_no) info.name[0] = 0; info.type[0] = 0; info.bootable = 0; -#if CONFIG_IS_ENABLED(PARTITION_UUIDS) - info.uuid[0] = 0; -#endif + disk_partition_clr_uuid(&info); } return fat_set_blk_dev(dev_desc, &info); |