From nobody Thu Dec 9 20:21:37 2021 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 CBBBD18DD13D; Thu, 9 Dec 2021 20:21:38 +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 4J956951yQz4tv9; Thu, 9 Dec 2021 20:21:37 +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 7022554C2; Thu, 9 Dec 2021 20:21:37 +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 1B9KLbuq063233; Thu, 9 Dec 2021 20:21:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9KLbEa063232; Thu, 9 Dec 2021 20:21:37 GMT (envelope-from git) Date: Thu, 9 Dec 2021 20:21:37 GMT Message-Id: <202112092021.1B9KLbEa063232@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: f955fec726b3 - main - ioat: plug set-but-not-unused vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f955fec726b3e48fdc648039a100dc7f0e732414 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639081297; 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=xb8N6648fWUvxbovkDYBrrXwKbbZ3HNlbo0Fth3Yz2c=; b=baciFWYkwp5yZS78oRJfH8YVoyDpP7AsEb/44HjCrebkpaefPaU4kpmIgRBiVjgILibGty TIT60v52A6XDDrinw+wYPgguQRExhFo3RDvAEGwZP7GhFknQQif90O9DTFe0DUmkc9fXAK 0jT1YkwTQJllZt29MKOLMCbcc4MvrST0lByN+o1tKkZ0uZfJTFrLYFkJ86xWRfkPHv7i68 WK1ZIegSnRFYThMgSKCJyo0+KOwMX3XE9aZvSZUylkyRnpJYAZcX5DRbDZhLkTcElZgnKf biEZcJBSzUJGvlLTBw5JoeeUVxRb0/3OeQTl4LPL5lB4jUtV60FGSuhzpjQuMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639081297; a=rsa-sha256; cv=none; b=k4Y38mAWHnPEz1whH0bt1fAcgRsoq0S5BgMy4L9JR+cu5w674Zs9k2S09rEImIXRoImXO1 UKUzw03Vh3MxkMU/KENfcE/aAvR5Ua4i/+bWevUUdAUbaGZpUdDFXpnV30KOv0nQjT2Rt0 slVMeckkLtxT4+ImYCwzECIX2bW8SadS1EUpOa5tydqogiTyg4AjQDYt0jIjMF0hxvrytw +bZrzMzakjMLlz4dNnrSSEu72/R9ItEE0sUBSIdNeOacdX0mA2L7yfFOSPlrGEjVhQhAfC iDl0CFwSggBvLJXoWEqeBP/JEqqrj/IJ5NAKRMP4jObYFD2EMmScIAK8qgNoeg== 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=f955fec726b3e48fdc648039a100dc7f0e732414 commit f955fec726b3e48fdc648039a100dc7f0e732414 Author: Mateusz Guzik AuthorDate: 2021-12-09 20:21:16 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 20:21:16 +0000 ioat: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/ioat/ioat.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index 2badfedb7488..d7935302f02f 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -716,10 +716,8 @@ ioat_setup_intr(struct ioat_softc *ioat) uint32_t num_vectors; int error; boolean_t use_msix; - boolean_t force_legacy_interrupts; use_msix = FALSE; - force_legacy_interrupts = FALSE; if (!g_force_legacy_interrupts && pci_msix_count(ioat->device) >= 1) { num_vectors = 1; @@ -809,7 +807,7 @@ ioat_process_events(struct ioat_softc *ioat, boolean_t intr) struct bus_dmadesc *dmadesc; uint64_t comp_update, status; uint32_t completed, chanerr; - int error; + int error __diagused; if (intr) { mtx_lock(&ioat->cleanup_lock); @@ -948,14 +946,13 @@ static void ioat_reset_hw_task(void *ctx, int pending __unused) { struct ioat_softc *ioat; - int error; + int error __diagused; ioat = ctx; ioat_log_message(1, "%s: Resetting channel\n", __func__); error = ioat_reset_hw(ioat); KASSERT(error == 0, ("%s: reset failed: %d", __func__, error)); - (void)error; } /*