err set but not used. Eliminate it.

This commit is contained in:
Warner Losh 2014-08-08 11:47:18 +00:00
parent 23983bef48
commit 89c4eab36f

View file

@ -957,9 +957,9 @@ ata_promise_mio_softreset(device_t dev, int port)
/* wait for BUSY to go inactive */
for (timeout = 0; timeout < 100; timeout++) {
u_int8_t err, stat;
u_int8_t /* err, */ stat;
err = ATA_IDX_INB(ch, ATA_ERROR);
/* err = */ ATA_IDX_INB(ch, ATA_ERROR);
stat = ATA_IDX_INB(ch, ATA_STATUS);
//if (stat == err && timeout > (stat & ATA_S_BUSY ? 100 : 10))