Skip to content
Commit a30a0ea7 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi/libstub: Use const qualified device path protocol pointers



The EFI APIs that deal with device path protocol instances never modify
them, but given that these APIs do not use const qualified pointers at
all, but instead uses IN and OUT modifiers that are #define'd to empty
tokens, we cannot currently pass a device path protocol pointer that
refers to a read-only object.

So add the const qualification where appropriate, and drop a cast that
is no longer necessary.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent fe15c26e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment