diff options
-rw-r--r-- | drivers/media/common/saa7146_core.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-dma.c | 2 | ||||
-rw-r--r-- | drivers/media/video/btcx-risc.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-core.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/common/saa7146_core.c b/drivers/media/common/saa7146_core.c index d01965e9692..d599d360da3 100644 --- a/drivers/media/common/saa7146_core.c +++ b/drivers/media/common/saa7146_core.c | |||
@@ -234,7 +234,7 @@ void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt) | |||
234 | int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt) | 234 | int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt) |
235 | { | 235 | { |
236 | __le32 *cpu; | 236 | __le32 *cpu; |
237 | dma_addr_t dma_addr; | 237 | dma_addr_t dma_addr = 0; |
238 | 238 | ||
239 | cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr); | 239 | cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr); |
240 | if (NULL == cpu) { | 240 | if (NULL == cpu) { |
diff --git a/drivers/media/dvb/b2c2/flexcop-dma.c b/drivers/media/dvb/b2c2/flexcop-dma.c index a91ed28f03a..26f0011a507 100644 --- a/drivers/media/dvb/b2c2/flexcop-dma.c +++ b/drivers/media/dvb/b2c2/flexcop-dma.c | |||
@@ -10,7 +10,7 @@ | |||
10 | int flexcop_dma_allocate(struct pci_dev *pdev, struct flexcop_dma *dma, u32 size) | 10 | int flexcop_dma_allocate(struct pci_dev *pdev, struct flexcop_dma *dma, u32 size) |
11 | { | 11 | { |
12 | u8 *tcpu; | 12 | u8 *tcpu; |
13 | dma_addr_t tdma; | 13 | dma_addr_t tdma = 0; |
14 | 14 | ||
15 | if (size % 2) { | 15 | if (size % 2) { |
16 | err("dma buffersize has to be even."); | 16 | err("dma buffersize has to be even."); |
diff --git a/drivers/media/video/btcx-risc.c b/drivers/media/video/btcx-risc.c index 3324ab38f58..ac1b2687a20 100644 --- a/drivers/media/video/btcx-risc.c +++ b/drivers/media/video/btcx-risc.c | |||
@@ -64,7 +64,7 @@ int btcx_riscmem_alloc(struct pci_dev *pci, | |||
64 | unsigned int size) | 64 | unsigned int size) |
65 | { | 65 | { |
66 | __le32 *cpu; | 66 | __le32 *cpu; |
67 | dma_addr_t dma; | 67 | dma_addr_t dma = 0; |
68 | 68 | ||
69 | if (NULL != risc->cpu && risc->size < size) | 69 | if (NULL != risc->cpu && risc->size < size) |
70 | btcx_riscmem_free(pci,risc); | 70 | btcx_riscmem_free(pci,risc); |
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c index 64f20fd4631..148aa81dc24 100644 --- a/drivers/media/video/saa7134/saa7134-core.c +++ b/drivers/media/video/saa7134/saa7134-core.c | |||
@@ -215,7 +215,7 @@ unsigned long saa7134_buffer_base(struct saa7134_buf *buf) | |||
215 | int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt) | 215 | int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt) |
216 | { | 216 | { |
217 | __le32 *cpu; | 217 | __le32 *cpu; |
218 | dma_addr_t dma_addr; | 218 | dma_addr_t dma_addr = 0; |
219 | 219 | ||
220 | cpu = pci_alloc_consistent(pci, SAA7134_PGTABLE_SIZE, &dma_addr); | 220 | cpu = pci_alloc_consistent(pci, SAA7134_PGTABLE_SIZE, &dma_addr); |
221 | if (NULL == cpu) | 221 | if (NULL == cpu) |