]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: remove efi_disk_is_system_part()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 4 Mar 2022 23:36:50 +0000 (00:36 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Mar 2022 10:03:06 +0000 (11:03 +0100)
commit051ab42edf2be8daa206e4303eb93057bccf0b89
tree40d7f34d85102231badd080d696b8557af8ba4bd
parent2015e9b23679bcddd1d01f61ca009de68e59aa39
efi_loader: remove efi_disk_is_system_part()

The block IO protocol may be installed on any handle. We should make
no assumption about the structure the handle points to.

efi_disk_is_system_part() makes an illegal widening cast from a handle
to a struct efi_disk_obj. Remove the function.

Fixes: Fixes: 64bd078600a4 ("efi_loader: disk: add efi_disk_is_system_part()")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_capsule.c
lib/efi_loader/efi_disk.c