git: c61dc8542865 - main - Fix "set but not used" in the mvs driver. Remove dead code.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 19:18:57 UTC
The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=c61dc8542865be1c2f1eb3f85d424141fb5ecd36 commit c61dc8542865be1c2f1eb3f85d424141fb5ecd36 Author: Scott Long <scottl@FreeBSD.org> AuthorDate: 2022-02-26 19:18:42 +0000 Commit: Scott Long <scottl@FreeBSD.org> CommitDate: 2022-02-26 19:18:42 +0000 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 80c5e8cfe05f..7ef3e50e25c6 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)