Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2022 18:53:51 GMT
From:      Piotr Pawel Stefaniak <pstef@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 15635c0ed3b1 - stable/13 - backlight: Remove set but not used variable
Message-ID:  <202203221853.22MIrpQe099704@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by pstef:

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

commit 15635c0ed3b13ab98e01f842652e44fdef451395
Author:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2022-03-17 21:37:15 +0000
Commit:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
CommitDate: 2022-03-22 17:36:04 +0000

    backlight: Remove set but not used variable
    
    (cherry picked from commit fde687c239e55da067ebd94cfa36e3a8b3a57167)
---
 usr.bin/backlight/backlight.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/usr.bin/backlight/backlight.c b/usr.bin/backlight/backlight.c
index 9cf7a0912e95..7c3f295223f5 100644
--- a/usr.bin/backlight/backlight.c
+++ b/usr.bin/backlight/backlight.c
@@ -101,11 +101,9 @@ main(int argc, char *argv[])
 	long percent = -1;
 	const char *percent_error;
 	uint32_t i;
-	bool setname;
 	bool quiet = false;
 
 	action = BACKLIGHT_QUERY;
-	setname = false;
 	fd = -1;
 
 	while ((ch = getopt(argc, argv, "f:qhi")) != -1) {
@@ -114,7 +112,6 @@ main(int argc, char *argv[])
 			quiet = true;
 			break;
 		case 'f':
-			setname = true;
 			set_device_name(optarg);
 			break;
 		case 'i':



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