mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 07:17:10 +00:00
efi: Correct assumption about if_type
efi_set_blk_dev_to_system_partition() assumes that 0 is an invalid if_type. This is true now but is about to be false. Fix this bug to avoid a test failure. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bb2c9a30c2
commit
adbfe8edc3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ static efi_status_t __maybe_unused efi_set_blk_dev_to_system_partition(void)
|
||||||
char part_str[PART_STR_LEN];
|
char part_str[PART_STR_LEN];
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!efi_system_partition.if_type) {
|
if (efi_system_partition.if_type == UCLASS_INVALID) {
|
||||||
log_err("No EFI system partition\n");
|
log_err("No EFI system partition\n");
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue