git: f955fec726b3 - main - ioat: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 20:21:37 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f955fec726b3e48fdc648039a100dc7f0e732414 commit f955fec726b3e48fdc648039a100dc7f0e732414 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-09 20:21:16 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> 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; } /*