Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2022 03:42:55 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: 20669405d282 - main - flexspi: In flex_spi_task remove dev, it's write only
Message-ID:  <202204060342.2363gtcU089136@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=20669405d2820d8f1541b93be6c4adab446b7a83

commit 20669405d2820d8f1541b93be6c4adab446b7a83
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-06 01:58:55 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-06 03:42:05 +0000

    flexspi: In flex_spi_task remove dev, it's write only
    
    Sponsored by:           Netflix
---
 sys/dev/flash/flexspi/flex_spi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/flash/flexspi/flex_spi.c b/sys/dev/flash/flexspi/flex_spi.c
index fea3134730f1..0637d7f846c6 100644
--- a/sys/dev/flash/flexspi/flex_spi.c
+++ b/sys/dev/flash/flexspi/flex_spi.c
@@ -937,11 +937,9 @@ flex_spi_task(void *arg)
 {
 	struct flex_spi_softc *sc;
 	struct bio *bp;
-	device_t dev;
 
 	sc = (struct flex_spi_softc *)arg;
 	for (;;) {
-		dev = sc->dev;
 		mtx_lock(&sc->disk_mtx);
 		do {
 			if (sc->taskstate == TSTATE_STOPPING) {



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