git: 887ae1953f07 - main - Fix "set but not used" in the siis driver.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 18:47:11 UTC
The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=887ae1953f077bd7b8da0589ae595cbf61e297a7 commit 887ae1953f077bd7b8da0589ae595cbf61e297a7 Author: Scott Long <scottl@FreeBSD.org> AuthorDate: 2022-02-26 18:46:53 +0000 Commit: Scott Long <scottl@FreeBSD.org> CommitDate: 2022-02-26 18:46:53 +0000 Fix "set but not used" in the siis driver. --- sys/dev/siis/siis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c index 316a9c6b61eb..19b73f71be8e 100644 --- a/sys/dev/siis/siis.c +++ b/sys/dev/siis/siis.c @@ -850,7 +850,7 @@ siis_ch_intr(void *data) { device_t dev = (device_t)data; struct siis_channel *ch = device_get_softc(dev); - uint32_t istatus, sstatus, ctx, estatus, ok, err = 0; + uint32_t istatus, sstatus, ctx, estatus, ok; enum siis_err_type et; int i, ccs, port, tslots; @@ -882,7 +882,6 @@ siis_ch_intr(void *data) ctx = ATA_INL(ch->r_mem, SIIS_P_CTX); ccs = (ctx & SIIS_P_CTX_SLOT) >> SIIS_P_CTX_SLOT_SHIFT; port = (ctx & SIIS_P_CTX_PMP) >> SIIS_P_CTX_PMP_SHIFT; - err = ch->rslots & sstatus; //device_printf(dev, "%s ERROR ss %08x is %08x rs %08x es %d act %d port %d serr %08x\n", // __func__, sstatus, istatus, ch->rslots, estatus, ccs, port, // ATA_INL(ch->r_mem, SIIS_P_SERR));