aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-10-15 02:03:55 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-10-21 03:46:04 +0200
commit05345425cab4202b356085afcac485614a9b52a9 (patch)
treef5f6112625fd86ac4e795dfdf8561177ef5c1e82 /lib
parentfc42b8bb75927e81f5c774e677abb990d23f0c38 (diff)
downloadu-boot-05345425cab4202b356085afcac485614a9b52a9.zip
u-boot-05345425cab4202b356085afcac485614a9b52a9.tar.gz
u-boot-05345425cab4202b356085afcac485614a9b52a9.tar.bz2
efi_loader: efi_dp_from_lo() unused parameter size
Parameter size is never used in function efi_dp_from_lo(). Remove it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_device_path.c2
-rw-r--r--lib/efi_loader/efi_helper.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index a588712..58fff81 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -1209,7 +1209,6 @@ ssize_t efi_dp_check_length(const struct efi_device_path *dp,
* initrd location
*
* @lo: EFI_LOAD_OPTION containing a valid device path
- * @size: size of the discovered device path
* @guid: guid to search for
*
* Return:
@@ -1218,7 +1217,6 @@ ssize_t efi_dp_check_length(const struct efi_device_path *dp,
*/
struct
efi_device_path *efi_dp_from_lo(struct efi_load_option *lo,
- efi_uintn_t *size,
const efi_guid_t *guid)
{
struct efi_device_path *fp = lo->file_path;
diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
index 4c5b7cd..89833de 100644
--- a/lib/efi_loader/efi_helper.c
+++ b/lib/efi_loader/efi_helper.c
@@ -83,7 +83,7 @@ struct efi_device_path *efi_get_dp_from_boot(const efi_guid_t guid)
if (ret != EFI_SUCCESS)
goto out;
- tmp = efi_dp_from_lo(&lo, &size, &guid);
+ tmp = efi_dp_from_lo(&lo, &guid);
if (!tmp)
goto out;