Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2021 11:26:33 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b6f387fdb772 - main - fdc: plug set-but-not-used vars
Message-ID:  <202111251126.1APBQX5T042557@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

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

commit b6f387fdb77216e9a89c77a985aec5f45d39fd90
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-25 11:25:11 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-25 11:25:11 +0000

    fdc: plug set-but-not-used vars
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/fdc/fdc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 6f035e9689f1..b427e919add1 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1182,9 +1182,7 @@ static void
 fd_enqueue(struct fd_data *fd, struct bio *bp)
 {
 	struct fdc_data *fdc;
-	int call;
 
-	call = 0;
 	fdc = fd->fdc;
 	mtx_lock(&fdc->fdc_mtx);
 	/* If we go from idle, cancel motor turnoff */
@@ -1468,11 +1466,9 @@ fd_access(struct g_provider *pp, int r, int w, int e)
 static void
 fd_start(struct bio *bp)
 {
- 	struct fdc_data *	fdc;
  	struct fd_data *	fd;
 
 	fd = bp->bio_to->geom->softc;
-	fdc = fd->fdc;
 	bp->bio_driver1 = fd;
 	if (bp->bio_cmd == BIO_GETATTR) {
 		if (g_handleattr_int(bp, "GEOM::fwsectors", fd->ft->sectrac))



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