boot/efi: use Header field of hd directly instead of casting to EFI_DEVICE_PATH
authorRose <83477269+AtariDreams@users.noreply.github.com>
Sun, 7 Jan 2024 19:43:43 +0000 (14:43 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Jan 2024 05:03:13 +0000 (14:03 +0900)
commited0cf4171f1f61afeec51da783bcb12a29daeebc
tree7069525790c009e90fdcc762e09b5b498e46f0b0
parentaa9ff6c28d682887ad6f19bda4aab3485897db78
boot/efi: use Header field of hd directly instead of casting to EFI_DEVICE_PATH

The header of EFI_DEVICE_PATH is the first member of hd, which means that we can use that directly instead of casting one struct to another.
src/boot/efi/part-discovery.c