The return value of platform_get_rng_device() is efi_status_t.
It does not fit into an integer variable ret. Use variable status.
The RNG device was available when registering the protocol. When it is no
longer available in GetRng(), this is a device error and not an unsupported
algorithm. Use EFI_DEVICE_ERROR returned by platform_get_rng_device() as
return value of GetRng().
Remove a duplicate debug() message in platform_get_rng_device().
v2:
* remove debug in platform_get_rng_device()
* keep the debug messagen in get_rng()
Heinrich Schuchardt (2):
efi_loader: remove debug in platform_get_rng_device
efi_loader: consider type of platform_get_rng_device() return value
lib/efi_loader/efi_rng.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
--
2.53.0