aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ioat/ioat.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-09 20:21:16 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-09 20:21:16 +0000
commitf955fec726b3e48fdc648039a100dc7f0e732414 (patch)
treeae1153f08ab32c9181e428f754c940cbadffd700 /sys/dev/ioat/ioat.c
parentec434c85b46dd715da1940e2a8911bf476b0e477 (diff)
downloadsrc-f955fec726b3e48fdc648039a100dc7f0e732414.tar.gz
src-f955fec726b3e48fdc648039a100dc7f0e732414.zip
ioat: plug set-but-not-unused vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/dev/ioat/ioat.c')
-rw-r--r--sys/dev/ioat/ioat.c7
1 files 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;
}
/*