diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:34 -0400 |
commit | ae459af12816b507aed3fcb2b9fc933c212ea12e (patch) | |
tree | 4467a61af2ead5faca83031b88975872cb2d02c2 /drivers/net/wireless/ath9k | |
parent | a119cc492fc720de7fcaf7c1b9394d6c025d276d (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/ath9k')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index e6c39c1c1a28..dc42ad129b23 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -145,12 +145,10 @@ struct ath_buf { | |||
145 | }; | 145 | }; |
146 | 146 | ||
147 | struct ath_descdma { | 147 | struct ath_descdma { |
148 | const char *dd_name; | ||
149 | struct ath_desc *dd_desc; | 148 | struct ath_desc *dd_desc; |
150 | dma_addr_t dd_desc_paddr; | 149 | dma_addr_t dd_desc_paddr; |
151 | u32 dd_desc_len; | 150 | u32 dd_desc_len; |
152 | struct ath_buf *dd_bufptr; | 151 | struct ath_buf *dd_bufptr; |
153 | dma_addr_t dd_dmacontext; | ||
154 | }; | 152 | }; |
155 | 153 | ||
156 | int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | 154 | int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, |
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 1b43cb41363c..f5a541b864ce 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1789,7 +1789,6 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
1789 | goto fail; | 1789 | goto fail; |
1790 | } | 1790 | } |
1791 | 1791 | ||
1792 | dd->dd_name = name; | ||
1793 | dd->dd_desc_len = sizeof(struct ath_desc) * nbuf * ndesc; | 1792 | dd->dd_desc_len = sizeof(struct ath_desc) * nbuf * ndesc; |
1794 | 1793 | ||
1795 | /* | 1794 | /* |
@@ -1819,7 +1818,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
1819 | } | 1818 | } |
1820 | ds = dd->dd_desc; | 1819 | ds = dd->dd_desc; |
1821 | DPRINTF(sc, ATH_DBG_CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n", | 1820 | DPRINTF(sc, ATH_DBG_CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n", |
1822 | dd->dd_name, ds, (u32) dd->dd_desc_len, | 1821 | name, ds, (u32) dd->dd_desc_len, |
1823 | ito64(dd->dd_desc_paddr), /*XXX*/(u32) dd->dd_desc_len); | 1822 | ito64(dd->dd_desc_paddr), /*XXX*/(u32) dd->dd_desc_len); |
1824 | 1823 | ||
1825 | /* allocate buffers */ | 1824 | /* allocate buffers */ |