From: "Vincent Stehlé" <vincent.stehle@arm.com>
To: u-boot@lists.u-boot-project.org
Cc: "Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Tom Rini" <trini@konsulko.com>, "Simon Glass" <sjg@chromium.org>,
"Vincent Stehlé" <vincent.stehle@arm.com>
Subject: [PATCH] efi_loader: remove unused function efi_dp_match()
Date: Fri, 04 Sep 2026 17:58:31 +0200 [thread overview]
Message-ID: <20260904-dead-v1-1-2ecf6ffe7bac@arm.com> (raw)
The efi_dp_match() function is unused since commit c409593d0853
("efi_loader: fix efi_dp_find_obj()"); remove it.
Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
---
include/efi_device_path.h | 19 -------------------
lib/efi_loader/efi_device_path.c | 22 ----------------------
2 files changed, 41 deletions(-)
diff --git a/include/efi_device_path.h b/include/efi_device_path.h
index aae85228f68..034a476887e 100644
--- a/include/efi_device_path.h
+++ b/include/efi_device_path.h
@@ -33,25 +33,6 @@ extern const struct efi_device_path EFI_DP_END;
*/
struct efi_device_path *efi_dp_next(const struct efi_device_path *dp);
-/**
- * efi_dp_match() - Compare two device-paths
- *
- * Compare two device paths node by node. The comparison stops when an End
- * node is reached in the shorter of the two paths. This is useful, for example,
- * to compare a device-path representing a device with one representing a file
- * on that device, or a device with a parent device.
- *
- * @a: Pointer to the first device path.
- * @b: Pointer to the second device path.
- * Return: An integer less than, equal to, or greater than zero if the first
- * differing node in 'a' is found, respectively, to be less than,
- * to match, or be greater than the corresponding node in 'b'. Returns 0
- * if they match up to the end of the shorter path. Compares length first,
- * then content.
- */
-int efi_dp_match(const struct efi_device_path *a,
- const struct efi_device_path *b);
-
/**
* efi_dp_shorten() - shorten device-path
*
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index 9efb158f5dd..0389af23906 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -60,28 +60,6 @@ struct efi_device_path *efi_dp_next(const struct efi_device_path *dp)
return (struct efi_device_path *)dp;
}
-int efi_dp_match(const struct efi_device_path *a,
- const struct efi_device_path *b)
-{
- while (1) {
- int ret;
-
- ret = memcmp(&a->length, &b->length, sizeof(a->length));
- if (ret)
- return ret;
-
- ret = memcmp(a, b, a->length);
- if (ret)
- return ret;
-
- a = efi_dp_next(a);
- b = efi_dp_next(b);
-
- if (!a || !b)
- return 0;
- }
-}
-
struct efi_device_path *efi_dp_shorten(struct efi_device_path *dp)
{
while (dp) {
---
base-commit: cc557af4553382f6f50e3ed62b9577054e7bc54f
change-id: 20260904-dead-190dd2512e4b
Best regards,
--
Vincent.
next reply other threads:[~2026-09-04 15:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 15:58 Vincent Stehlé [this message]
2026-09-07 12:25 ` [PATCH] efi_loader: remove unused function efi_dp_match() Ilias Apalodimas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260904-dead-v1-1-2ecf6ffe7bac@arm.com \
--to=vincent.stehle@arm.com \
--cc=ilias.apalodimas@linaro.org \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.