pcl711: In pcl711_ai_cmd(), fix uninitialized variables timer1 and timer2.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:10:08 +0000 (11:10 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:10:08 +0000 (11:10 +0000)
Values are passed by reference to i8253_cascade_ns_to_timer().

comedi/drivers/pcl711.c

index 625c2d40a33a5e4e25191947feff2f15c855844e..8e57e3af5ad1f878e3b20579e6a105a106cf8a9d 100644 (file)
@@ -399,6 +399,7 @@ static int pcl711_ai_cmd(comedi_device * dev, comedi_subdevice * s)
                 *  0xb4 = Select Counter 2 | LSB/MSB | Mode=2 | Binary
                 */
 
+               timer1 = timer2 = 0;
                i8253_cascade_ns_to_timer(i8253_osc_base, &timer1, &timer2,
                        &cmd->scan_begin_arg, TRIG_ROUND_NEAREST);