]> git.dujemihanovic.xyz Git - u-boot.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)
commitb78631d54f72f063e1f2a5d14a349b1b0d8fbce7
tree40d7f34d85102231badd080d696b8557af8ba4bd
parent90dcd9b2d3a318391453d9d623d931a568906cb5
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: 41fd506842c2 ("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