From nobody Wed Apr 06 03:42:58 2022 X-Original-To: dev-commits-src-main@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 1E5E51A91730; Wed, 6 Apr 2022 03:43:00 +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 4KY9MR3qp3z4sP7; Wed, 6 Apr 2022 03:42:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216579; 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=CHTHc/owXBXJd2Sy3szckZqbhN0F+niB93keCfFP0yg=; b=SlDS6yE12wKUbXIwGn+c866Ouy0K1+GyetL5P+fpzyjJMNiBeHsHaBIgwbx3BKjc3LhKXp NZPg04cwJhjKBEB0AVe+Mj18o9jEYNfpqovnR4VCl5n7MTLMog/uM6IFyDIw0M4OglDgzO pMWaKFQr1i9HWd/9N20E1VfEk5nm6cXmEkQv9B3Dhhr2lsS5gPlLjTS6eApWT3CNf91IS1 yhaE4VYENYnqU6/ir3qV4JORCigkYv/G+OuE1fVDQeBrtyLWZlFNaRNcHn2UbB8ncvn/m2 pPCESk+OHbmG726qnVWz3yx3RwIRaa3Pw5EDMtkY8e+UtO2x7RTWX1qkVzLUrA== 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 D9A0D139C9; Wed, 6 Apr 2022 03:42:58 +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 2363gwOD089216; Wed, 6 Apr 2022 03:42:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2363gw9W089215; Wed, 6 Apr 2022 03:42:58 GMT (envelope-from git) Date: Wed, 6 Apr 2022 03:42:58 GMT Message-Id: <202204060342.2363gw9W089215@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: d483782ecf67 - main - intpm: Remove write only variables, tag slvcnt unused since it's used for debugging List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d483782ecf679ac15232ec4213cebf916759eee4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216579; 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=CHTHc/owXBXJd2Sy3szckZqbhN0F+niB93keCfFP0yg=; b=kSizER9kqoIRNSEbkMh3fP/cTgW3DPKSHwtwMIsgdIPdcotD+RSCTrjucCS4RK9BNwb37n MkFGy08Kk6dhR6juo2TZQHKq9RFmQWidm7MGxRheH4cqI8mNdNxyiY5vbee6+QCs5fO8/A 5EGPjY05aOLESIlYifL6qtby7D1GsC2whqdNJx3T4CXPwzhudoCQoefX+vTiPsWdzyWxTs HT3X9Ieparl7pDhe9ZWc0OKt27YrZuK2nzSbAuqi8HlEGfbNAEJK5hgKL5lD0l+JoQj9Wp 3yg4i2Am5jMiWEmm5UlORay8mXzemwYdjWjbCtf7XtU/T57CfVnl3vflPpLJ8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649216579; a=rsa-sha256; cv=none; b=tEMXTvHn/np0vQ0JancQGrXxlCGqZEeU5Adv6P9SrXZmqTwbibBUS7j9xqG9m7Wd82qCqG oCIMLQDn05d0O64UaiwiW2lQteTCPRk5AFtXofZgMb33jjvCqPilSEDGhnjORVA4ZfmV8U iyYH6B11CUVaIBFKN1dZIlC247MA7J8Ccw3O76N5u/p82/2my+8K+Bktbhe4f7xx2yla73 JhfIl17LaFgk37WyilUvWE7vor26Z0AcBjjKWVruiBIrBEkH5k5+Tjtn1pNx83E3xH/6PU L/CNXoDfD0Qz+z2kYby7fT22+Q1EBCZiZIvrizj+3fGS2oD6yG1grPlMJBdXJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d483782ecf679ac15232ec4213cebf916759eee4 commit d483782ecf679ac15232ec4213cebf916759eee4 Author: Warner Losh AuthorDate: 2022-04-06 02:00:42 +0000 Commit: Warner Losh CommitDate: 2022-04-06 03:42:05 +0000 intpm: Remove write only variables, tag slvcnt unused since it's used for debugging Sponsored by: Netflix --- sys/dev/intpm/intpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c index a394a8a0be73..e14f3b8f4eed 100644 --- a/sys/dev/intpm/intpm.c +++ b/sys/dev/intpm/intpm.c @@ -468,7 +468,7 @@ intsmb_slvintr(struct intsmb_softc *sc) static void intsmb_alrintr(struct intsmb_softc *sc) { - int slvcnt; + int slvcnt __unused; #ifdef ENABLE_ALART int error; uint8_t addr; @@ -840,7 +840,7 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) { struct intsmb_softc *sc = device_get_softc(dev); int error, i; - u_char data, nread; + u_char nread; INTSMB_LOCK(sc); error = intsmb_free(sc); @@ -861,7 +861,7 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) if (nread != 0 && nread <= SMBBLOCKTRANS_MAX) { *count = nread; for (i = 0; i < nread; i++) - data = bus_read_1(sc->io_res, PIIX4_SMBBLKDAT); + bus_read_1(sc->io_res, PIIX4_SMBBLKDAT); } else error = SMB_EBUSERR; }