aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-12-14 23:49:38 +0000
committerWarner Losh <imp@FreeBSD.org>2021-12-14 23:53:09 +0000
commit2426adf4f4327bcb41925846024ba8127527e36a (patch)
tree5f04b5c55499f77bb97d95d98302805a0f28bf9c
parentf581847a7277576dd71e3d4f7de324150799c7f1 (diff)
downloadsrc-2426adf4f4327bcb41925846024ba8127527e36a.tar.gz
src-2426adf4f4327bcb41925846024ba8127527e36a.zip
ata-promise: kill lenght, it's set but never used
Sponsored by: Netflix
-rw-r--r--sys/dev/ata/chipsets/ata-promise.c3
1 files changed, 1 insertions, 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 *)