efi: Drop unnecessary calls to blk_find_device()
authorSimon Glass <sjg@chromium.org>
Sat, 29 Jan 2022 21:58:39 +0000 (14:58 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 5 Feb 2022 19:20:01 +0000 (20:20 +0100)
commite2bceb03312a8abfb4f423ac349ab5861feb3548
tree30392481d7c33addcf17ea0f126e29d49af765b3
parent377d39d178570a3510a34aac61f008b43cca783f
efi: Drop unnecessary calls to blk_find_device()

When we have the block descriptor we can simply access the device. Drop
the unnecessary function call.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path.c