From nobody Sun Oct 02 04:29:27 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mg9wS38r6z4dt0L; Sun, 2 Oct 2022 04:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mg9wS0JCGz44Gv; Sun, 2 Oct 2022 04:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4b/Hpx4UwbhFueV51BGK7E8EJfqkCDAML9TFqQpFeS0=; b=U5tL/JRzKnwzSOtUizof2A4eXnAI2NXa8C+K0s8K8zrIzIwfqW8chAQecOB6qMmbMSGRqw b/9TMIR4qjAeTPendiwTWNIit70zQpbzoaB2yhkGSVCBAsM5MgKvoZ4zGaelrjb0uqoVip HEdCKE5PjlkxB99RAyRyJUnO99r8Ql2iSQehtdA3+ierPMZeci9U6XvICsMDWZt3PVtyp7 X9FJjSFK6CqSTRV4IECY4nOMuaI8TV/pbpi8rQTJ6eJYrMH44dYlK7Qu2rFpbsW1amwahs bQUQH//SS9oXxqEAP8cILp0ZRVbM/siGOJKYd5A7kZ3wn9Yd/+mfXtXrI5Bcdw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mg9wR6WHhzlKJ; Sun, 2 Oct 2022 04:29:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2924TRoY058202; Sun, 2 Oct 2022 04:29:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TRmw058201; Sun, 2 Oct 2022 04:29:27 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:27 GMT Message-Id: <202210020429.2924TRmw058201@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 0680f1bf4ae7 - stable/13 - mx25l_task: eliminate dev write only variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0680f1bf4ae7b0b35d69cb6d6ef9fca4197537f0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4b/Hpx4UwbhFueV51BGK7E8EJfqkCDAML9TFqQpFeS0=; b=B/ZupbrGZW68OtBzfrQkKD5YJyP7f8LVVSMMGq2AEKV8rpOXITKytdQ6vHxMFApyMuUMGR xSu9h1hi/wTuZTIw5yQp2fomIBox26sVT9vZcgCVeCHLaOyWklQKNMxGEWWB9Tl6LzUX/O SqrkubcGvMZg9wbUtLttMtzWRMc+9nv4H562S/4R1JBiupdchqMffhWj22N2jhAPX9YCnq zeHbahaeI3IKfLSi422fLjYyPEqtLw2nTOII4RJic6Od4WXGtkHL7bCmR1cFG/0b2vsRe1 LrgaRKMYxqwYd5/Jtlz1cB5tmOkhQO7m2w2CJitvA3Cr65ffFgIBizTzkuuv3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684968; a=rsa-sha256; cv=none; b=uRKmQ9L2N4ZFR7nKycreIPdpdIH5JxuW1lLI3Pum9+ujGRm8DYfcFGd18H1Gq7kbvXOVPf McO0IET336WYaSbFZ91bfGgse2hDZO5oojHGt1s7rxt/2paEWSIH83JS+jBD98ZKZtoECv LbuYA5A2Lvikpd6v6gtRUNf/de+NnA4HyKIyDIEda+q7mTswuclPCPcizFi6JaaMzmOTjs xbp1o0wJ3lkanUNO236FFND3xP+1DAOBqVUd5ACC/OQCyaowYNnRfEUM7ngzb3rdGEJUFE qz9RhtKl9N94o7/qLX+b1DBMH7lyV0zDa8Ngp+juT4ySDPtrOqHLgoxD4RTqXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0680f1bf4ae7b0b35d69cb6d6ef9fca4197537f0 commit 0680f1bf4ae7b0b35d69cb6d6ef9fca4197537f0 Author: Warner Losh AuthorDate: 2022-07-08 17:53:30 +0000 Commit: Warner Losh 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) {