1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix "set but not used" in the mvs driver. Remove dead code.

This commit is contained in:
Scott Long 2022-02-26 12:18:42 -07:00
parent 0fd7b4c74d
commit c61dc85428

View File

@ -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)