git: 6e31d66849f0 - main - ata_dbdma_dmainit: Remove unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 12 Apr 2022 21:59:19 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e31d66849f060e7014c19696209488c2b578e08

commit 6e31d66849f060e7014c19696209488c2b578e08
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:58:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 21:58:58 +0000

    ata_dbdma_dmainit: Remove unused variable.
---
 sys/powerpc/powermac/ata_dbdma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/powerpc/powermac/ata_dbdma.c b/sys/powerpc/powermac/ata_dbdma.c
index f2484bc0ae0f..65e99e57f68a 100644
--- a/sys/powerpc/powermac/ata_dbdma.c
+++ b/sys/powerpc/powermac/ata_dbdma.c
@@ -260,9 +260,8 @@ void
 ata_dbdma_dmainit(device_t dev)
 {
 	struct ata_dbdma_channel *sc = device_get_softc(dev);
-	int error;
 
-	error = dbdma_allocate_channel(sc->dbdma_regs, sc->dbdma_offset,
+	dbdma_allocate_channel(sc->dbdma_regs, sc->dbdma_offset,
 	    bus_get_dma_tag(dev), 256, &sc->dbdma);
 
 	dbdma_set_wait_selector(sc->dbdma,1 << 7, 1 << 7);