From nobody Thu Dec 09 16:37:32 2021 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 A5DC518D25BF; Thu, 9 Dec 2021 16:37:32 +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 4J907c34DZz56Dd; Thu, 9 Dec 2021 16:37:32 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4B52A1C43; Thu, 9 Dec 2021 16:37:32 +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 1B9GbWPs058458; Thu, 9 Dec 2021 16:37:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9GbW2J058457; Thu, 9 Dec 2021 16:37:32 GMT (envelope-from git) Date: Thu, 9 Dec 2021 16:37:32 GMT Message-Id: <202112091637.1B9GbW2J058457@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: b9723c5ba973 - main - amdtemp: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b9723c5ba9731f1d628d37a624e67aaff9ff0209 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639067852; 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=5m08tZqncGmQCfXkKfnj/3RKO4pP1wyMp7Of8ujFpe0=; b=Z5cfnUVfyUY3tn8UtK561fCLyvbI8VBnZ24qtRcAHNyYiIbtPvStsZBm5YOQVnNf+OA33O igdJHB0hjt2UK68488eEH2gOPICTqxlxhBbBeQ+Fi/ASrXe5Sd/mgIH81BvoG5s0eFRXAz F0cJaey8Ag/FmVqgQKPBjR7X5PYwBmbHT/FIs75EiK0g39GfVXrd6Gt1UdMsVOxO2jYJZb AokYmnsMEyHpFs+j6/PwVSn4pWHl3983BJOV2PRjUDaiONFqoQYV4Iu5lFH2h7OZSPN5B1 42jQY9fjm36OL8YQolQThCISadj1P+2VK1QhGnMA7UNf7PLkD2/PPdkhrjf65w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639067852; a=rsa-sha256; cv=none; b=JrWHZhFrWr5nvgYCdlzvh21BYPXpcSdPhsjQOgDW6+bzcCiWjM0VXY7kCnhue/v1x5754B IEAT5E8yC6itNK6J8U3O2gZoKRfygbzjaLn5kGkAj66GMJz6wPOfDQJnsNK+HXcwRrHGVz nj6YX3jE7Zc4oId70D2txvtWAqad3/f8RmskBO6ozvbQod/Non979WYKq/8f+3qJmq0jR2 XUqN+Pgq6mjBa0EwvH2h8wNQEWHXo+3nsKORN9rQUAK/pr0G6SWkejm8REPukmNn8Q2id4 n3ivJgud50wicnHAnlUPO9FGpXkIsjusZ6Hv3pMDcwkHdiwd1+eeeNBnmzynEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b9723c5ba9731f1d628d37a624e67aaff9ff0209 commit b9723c5ba9731f1d628d37a624e67aaff9ff0209 Author: Mateusz Guzik AuthorDate: 2021-12-09 16:25:49 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 16:37:26 +0000 amdtemp: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/amdtemp/amdtemp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c index 21227a47c513..4606f03ae63c 100644 --- a/sys/dev/amdtemp/amdtemp.c +++ b/sys/dev/amdtemp/amdtemp.c @@ -744,7 +744,7 @@ amdtemp_gettemp15hm60h(device_t dev, amdsensor_t sensor) { struct amdtemp_softc *sc = device_get_softc(dev); uint32_t val; - int error; + int error __diagused; error = amdsmn_read(sc->sc_smn, AMDTEMP_15H_M60H_REPTMP_CTRL, &val); KASSERT(error == 0, ("amdsmn_read")); @@ -756,7 +756,7 @@ amdtemp_gettemp17h(device_t dev, amdsensor_t sensor) { struct amdtemp_softc *sc = device_get_softc(dev); uint32_t val; - int error; + int error __diagused; switch (sensor) { case CORE0_SENSOR0: