Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2023 23:04:31 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 547fb1426cec - main - efidp: Remove write only variable
Message-ID:  <202302152304.31FN4VgX051314@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302152304.31FN4VgX051314>