git: 547fb1426cec - main - efidp: Remove write only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Feb 2023 23:04:31 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=547fb1426cecf097a7eae023eb8a0fbde733178b
commit 547fb1426cecf097a7eae023eb8a0fbde733178b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-02-15 23:03:02 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-15 23:03:54 +0000
efidp: Remove write only variable
Sponsored by: Netflix
---
usr.sbin/efidp/efidp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/usr.sbin/efidp/efidp.c b/usr.sbin/efidp/efidp.c
index aef154112d66..967694024380 100644
--- a/usr.sbin/efidp/efidp.c
+++ b/usr.sbin/efidp/efidp.c
@@ -169,14 +169,13 @@ efi_to_unix(void)
char buffer[MAXSIZE];
char dpbuf[MAXSIZE];
efidp dp;
- size_t dplen;
char *walker, *dev, *relpath, *abspath;
int rv;
dp = (efidp)dpbuf;
while (fgets(buffer, sizeof(buffer), stdin)) {
walker= trim(buffer);
- dplen = efidp_parse_device_path(walker, dp, sizeof(dpbuf));
+ efidp_parse_device_path(walker, dp, sizeof(dpbuf));
rv = efivar_device_path_to_unix_path(dp, &dev, &relpath, &abspath);
if (rv == 0)
printf("%s:%s %s\n", dev, relpath, abspath);