From: Ian Abbott Date: Thu, 19 Nov 2009 11:32:37 +0000 (+0000) Subject: adv_pci1710: In pci171x_ai_docmd_and_mode(), initialize divisor1 and X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fdaae1f01333d32be80c1624b2b47fb6bf4146fe;p=comedi.git adv_pci1710: In pci171x_ai_docmd_and_mode(), initialize divisor1 and divisor2 values passed by reference to i8253_cascase_ns_to_timer(). --- diff --git a/comedi/drivers/adv_pci1710.c b/comedi/drivers/adv_pci1710.c index 65e1d23e..53cae42c 100644 --- a/comedi/drivers/adv_pci1710.c +++ b/comedi/drivers/adv_pci1710.c @@ -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",