git: d9b466296bdd - stable/13 - mvs: Eliminate unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Feb 2024 03:45:56 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d9b466296bdd1aa3b25b0cb6f0f546af21e55c62 commit d9b466296bdd1aa3b25b0cb6f0f546af21e55c62 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2023-06-09 23:18:54 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-02-19 03:43:00 +0000 mvs: Eliminate unused variable. ccim is unused. Just remove it. PR: 271920 Sponsored by: Netflix (cherry picked from commit 17dce737e305891c88e2410469cd23d8cfad1ca3) --- sys/dev/mvs/mvs_soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/mvs/mvs_soc.c b/sys/dev/mvs/mvs_soc.c index 9ffc56911404..f499d241adfa 100644 --- a/sys/dev/mvs/mvs_soc.c +++ b/sys/dev/mvs/mvs_soc.c @@ -205,7 +205,7 @@ static int mvs_ctlr_setup(device_t dev) { struct mvs_controller *ctlr = device_get_softc(dev); - int ccc = ctlr->ccc, cccc = ctlr->cccc, ccim = 0; + int ccc = ctlr->ccc, cccc = ctlr->cccc; /* Mask chip interrupts */ ATA_OUTL(ctlr->r_mem, CHIP_SOC_MIM, 0x00000000); @@ -222,8 +222,6 @@ mvs_ctlr_setup(device_t dev) ccc *= 150; ATA_OUTL(ctlr->r_mem, HC_ICT, cccc); ATA_OUTL(ctlr->r_mem, HC_ITT, ccc); - if (ccc) - ccim |= IC_HC0_COAL_DONE; /* Enable chip interrupts */ ctlr->gmim = ((ccc ? IC_HC0_COAL_DONE : (IC_DONE_HC0 & CHIP_SOC_HC0_MASK(ctlr->channels))) |