ath9k: Remove a couple of unused variables in descriptor handling

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Sujith
2009-03-30 15:28:40 +05:30
committed by John W. Linville
parent a119cc492f
commit ae459af128
2 changed files with 1 additions and 4 deletions

View File

@@ -145,12 +145,10 @@ struct ath_buf {
}; };
struct ath_descdma { struct ath_descdma {
const char *dd_name;
struct ath_desc *dd_desc; struct ath_desc *dd_desc;
dma_addr_t dd_desc_paddr; dma_addr_t dd_desc_paddr;
u32 dd_desc_len; u32 dd_desc_len;
struct ath_buf *dd_bufptr; struct ath_buf *dd_bufptr;
dma_addr_t dd_dmacontext;
}; };
int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,

View File

@@ -1789,7 +1789,6 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
goto fail; goto fail;
} }
dd->dd_name = name;
dd->dd_desc_len = sizeof(struct ath_desc) * nbuf * ndesc; dd->dd_desc_len = sizeof(struct ath_desc) * nbuf * ndesc;
/* /*
@@ -1819,7 +1818,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
} }
ds = dd->dd_desc; ds = dd->dd_desc;
DPRINTF(sc, ATH_DBG_CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n", DPRINTF(sc, ATH_DBG_CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n",
dd->dd_name, ds, (u32) dd->dd_desc_len, name, ds, (u32) dd->dd_desc_len,
ito64(dd->dd_desc_paddr), /*XXX*/(u32) dd->dd_desc_len); ito64(dd->dd_desc_paddr), /*XXX*/(u32) dd->dd_desc_len);
/* allocate buffers */ /* allocate buffers */