git: edcced8ab790 - main - mx25l_task: eliminate dev write only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:15 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=edcced8ab790ee677130166fa060d96c4eb31550 commit edcced8ab790ee677130166fa060d96c4eb31550 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 00:04:15 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:29:29 +0000 mx25l_task: eliminate dev write only variable Sponsored by: Netflix --- sys/dev/flash/mx25l.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/flash/mx25l.c b/sys/dev/flash/mx25l.c index 9608bbf57314..dfe670f73aee 100644 --- a/sys/dev/flash/mx25l.c +++ b/sys/dev/flash/mx25l.c @@ -633,10 +633,8 @@ mx25l_task(void *arg) { struct mx25l_softc *sc = (struct mx25l_softc*)arg; struct bio *bp; - device_t dev; for (;;) { - dev = sc->sc_dev; M25PXX_LOCK(sc); do { if (sc->sc_taskstate == TSTATE_STOPPING) {