efi_loader: do not call efi_runtime_detach twice
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 14 Aug 2019 04:49:09 +0000 (06:49 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 15 Aug 2019 18:33:10 +0000 (20:33 +0200)
commit9f8932d0558e52777175a2a6ef70c0ef3f519545
treefa6e197798c7bd6e348b05e54cd12bc0c73e138e
parent53e1d8fae8ccf24a1b91929a6d5e74d4cef18eb1
efi_loader: do not call efi_runtime_detach twice

Commit 7f95104d91cc ("efi_loader: detach runtime in ExitBootServices()")
added a call to efi_runtime_detach() to ExitBootServices() but did not
remove the call in SetVirtualAddressMap().

Remove the superfluous function call.

Correct a comment referring to efi_runtime_detach().

Fixes: 7f95104d91cc ("efi_loader: detach runtime in ExitBootServices()")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_runtime.c