flexspi: In flex_spi_task remove dev, it's write only

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-05 19:58:55 -06:00
parent 094b2a2379
commit 20669405d2

View File

@ -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) {