git: e623b0dc6552 - main - newfs: remove write-only variable

From: Robert Wing <rew_at_FreeBSD.org>
Date: Wed, 28 May 2025 00:56:22 UTC
The branch main has been updated by rew:

URL: https://cgit.FreeBSD.org/src/commit/?id=e623b0dc6552218369b34bd7884304c7481d4b9a

commit e623b0dc6552218369b34bd7884304c7481d4b9a
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-05-28 00:55:49 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-05-28 00:55:49 +0000

    newfs: remove write-only variable
---
 sbin/newfs/newfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 49bd8b7dc4b6..9c45c9150955 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -105,7 +105,6 @@ struct uufsd disk;		/* libufs disk structure */
 static char	device[MAXPATHLEN];
 static u_char   bootarea[BBSIZE];
 static int	is_file;		/* work on a file, not a device */
-static char	*dkname;
 static char	*disktype;
 
 static void getfssize(intmax_t *, const char *p, intmax_t, intmax_t);
@@ -330,7 +329,6 @@ main(int argc, char *argv[])
 	if ((st.st_mode & S_IFMT) != S_IFCHR) {
 		warn("%s: not a character-special device", special);
 		is_file = 1;	/* assume it is a file */
-		dkname = special;
 		if (sectorsize == 0)
 			sectorsize = 512;
 		mediasize = st.st_size;