adv_pci1710: In pci171x_ai_docmd_and_mode(), initialize divisor1 and
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:32:37 +0000 (11:32 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:32:37 +0000 (11:32 +0000)
divisor2 values passed by reference to i8253_cascase_ns_to_timer().

comedi/drivers/adv_pci1710.c

index 65e1d23ea7031b047813f3ee49d35f937422b81d..53cae42c44a87a8c8232ea00f9cad90d09e591ac 100644 (file)
@@ -804,7 +804,7 @@ static irqreturn_t interrupt_service_pci1710(int irq, void *d PT_REGS_ARG)
 static int pci171x_ai_docmd_and_mode(int mode, comedi_device * dev,
        comedi_subdevice * s)
 {
-       unsigned int divisor1, divisor2;
+       unsigned int divisor1 = 0, divisor2 = 0;
        unsigned int seglen;
 
        DPRINTK("adv_pci1710 EDBG: BGN: pci171x_ai_docmd_and_mode(%d,...)\n",