git: 20669405d282 - main - flexspi: In flex_spi_task remove dev, it's write only
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 03:42:55 UTC
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) {