git: 2426adf4f432 - main - ata-promise: kill lenght, it's set but never used

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 23:53:28 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=2426adf4f4327bcb41925846024ba8127527e36a

commit 2426adf4f4327bcb41925846024ba8127527e36a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-12-14 23:49:38 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-14 23:53:09 +0000

    ata-promise: kill lenght, it's set but never used
    
    Sponsored by:           Netflix
---
 sys/dev/ata/chipsets/ata-promise.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/ata/chipsets/ata-promise.c b/sys/dev/ata/chipsets/ata-promise.c
index cdda3df2c332..6ebbc5cd378a 100644
--- a/sys/dev/ata/chipsets/ata-promise.c
+++ b/sys/dev/ata/chipsets/ata-promise.c
@@ -1086,7 +1086,7 @@ ata_promise_sx4_command(struct ata_request *request)
     struct ata_dma_prdentry *prd;
     caddr_t window = rman_get_virtual(ctlr->r_res1);
     u_int32_t *wordp;
-    int i, idx, length = 0;
+    int i, idx;
 
     /* XXX SOS add ATAPI commands support later */
     switch (request->u.ata.command) {    
@@ -1134,7 +1134,6 @@ ata_promise_sx4_command(struct ata_request *request)
 	do {
 	    wordp[idx++] = prd[i].addr;
 	    wordp[idx++] = prd[i].count;
-	    length += (prd[i].count & ~ATA_DMA_EOT);
 	} while (!(prd[i++].count & ATA_DMA_EOT));
 
 	wordp = (u_int32_t *)