git: 17dce737e305 - main - mvs: Eliminate unused variable.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 09 Jun 2023 23:21:51 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=17dce737e305891c88e2410469cd23d8cfad1ca3

commit 17dce737e305891c88e2410469cd23d8cfad1ca3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-06-09 23:18:54 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-09 23:21:40 +0000

    mvs: Eliminate unused variable.
    
    ccim is unused. Just remove it.
    
    PR: 271920
    Sponsored by:           Netflix
---
 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 e24230375818..dd4cf72cc050 100644
--- a/sys/dev/mvs/mvs_soc.c
+++ b/sys/dev/mvs/mvs_soc.c
@@ -208,7 +208,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);
@@ -225,8 +225,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))) |