V4L/DVB (8745): v4l2: fix a bunch of compile warnings.
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 22 Aug 2008 20:01:45 +0000 (17:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:52 +0000 (09:36 -0200)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/saa7146_core.c
drivers/media/dvb/b2c2/flexcop-dma.c
drivers/media/video/btcx-risc.c
drivers/media/video/saa7134/saa7134-core.c

index d01965e96927b2477530ed666d86001eb68be946..d599d360da3fafcbcd26d72c19419683f1f2c4cb 100644 (file)
@@ -234,7 +234,7 @@ void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt)
 int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt)
 {
        __le32       *cpu;
-       dma_addr_t   dma_addr;
+       dma_addr_t   dma_addr = 0;
 
        cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr);
        if (NULL == cpu) {
index a91ed28f03a41d815f9edc2f32b7805535cf8ce1..26f0011a507813a0564b741ba7040a7c579fe8fc 100644 (file)
@@ -10,7 +10,7 @@
 int flexcop_dma_allocate(struct pci_dev *pdev, struct flexcop_dma *dma, u32 size)
 {
        u8 *tcpu;
-       dma_addr_t tdma;
+       dma_addr_t tdma = 0;
 
        if (size % 2) {
                err("dma buffersize has to be even.");
index 3324ab38f58c3b395f617e00c9a9c4bd957ff820..ac1b2687a20d7feca68b8ebce0758b0c5e29411c 100644 (file)
@@ -64,7 +64,7 @@ int btcx_riscmem_alloc(struct pci_dev *pci,
                       unsigned int size)
 {
        __le32 *cpu;
-       dma_addr_t dma;
+       dma_addr_t dma = 0;
 
        if (NULL != risc->cpu && risc->size < size)
                btcx_riscmem_free(pci,risc);
index 64f20fd4631f7a5241645e419fd32af2c1fc0fb0..148aa81dc246028af0aaeafe8aeea14182e28ad3 100644 (file)
@@ -215,7 +215,7 @@ unsigned long saa7134_buffer_base(struct saa7134_buf *buf)
 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt)
 {
        __le32       *cpu;
-       dma_addr_t   dma_addr;
+       dma_addr_t   dma_addr = 0;
 
        cpu = pci_alloc_consistent(pci, SAA7134_PGTABLE_SIZE, &dma_addr);
        if (NULL == cpu)