mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01:00
part: Add an accessor for struct disk_partition sys_ind
This field is only present when a CONFIG is set. To avoid annoying #ifdefs in the source code, add an accessor. Update the only usage. 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>
This commit is contained in:
@@ -184,12 +184,11 @@ int bootdev_find_in_blk(struct udevice *dev, struct udevice *blk,
|
||||
if (ret)
|
||||
return log_msg_ret("fs", ret);
|
||||
|
||||
/* Use an #ifdef due to info.sys_ind */
|
||||
#ifdef CONFIG_DOS_PARTITION
|
||||
log_debug("%s: Found partition %x type %x fstype %d\n",
|
||||
blk->name, bflow->part, info.sys_ind,
|
||||
blk->name, bflow->part,
|
||||
IS_ENABLED(CONFIG_DOS_PARTITION) ?
|
||||
disk_partition_sys_ind(&info) : 0,
|
||||
ret ? -1 : fs_get_type());
|
||||
#endif
|
||||
bflow->blk = blk;
|
||||
bflow->state = BOOTFLOWST_FS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user