From c61dc8542865be1c2f1eb3f85d424141fb5ecd36 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sat, 26 Feb 2022 12:18:42 -0700 Subject: [PATCH] Fix "set but not used" in the mvs driver. Remove dead code. --- sys/dev/mvs/mvs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c index 80c5e8cfe05..7ef3e50e25c 100644 --- a/sys/dev/mvs/mvs.c +++ b/sys/dev/mvs/mvs.c @@ -844,7 +844,6 @@ mvs_legacy_intr(device_t dev, int poll) struct mvs_slot *slot = &ch->slot[0]; /* PIO is always in slot 0. */ union ccb *ccb = slot->ccb; enum mvs_err_type et = MVS_ERR_NONE; - int port; u_int length, resid, size; uint8_t buf[2]; uint8_t status, ireason; @@ -853,7 +852,6 @@ mvs_legacy_intr(device_t dev, int poll) status = mvs_getstatus(dev, 1); if (slot->state < MVS_SLOT_RUNNING) return; - port = ccb->ccb_h.target_id & 0x0f; /* Wait a bit for late !BUSY status update. */ if (status & ATA_S_BUSY) { if (poll)