Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2022 04:29:27 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0680f1bf4ae7 - stable/13 - mx25l_task: eliminate dev write only variable
Message-ID:  <202210020429.2924TRmw058201@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

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

commit 0680f1bf4ae7b0b35d69cb6d6ef9fca4197537f0
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:52 +0000

    mx25l_task: eliminate dev write only variable
    
    Sponsored by:           Netflix
    
    (cherry picked from commit edcced8ab790ee677130166fa060d96c4eb31550)
---
 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) {



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