From d720ac3939fdc4fef1122b1669726c6b8a1a2b94 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 19 Nov 2009 11:10:08 +0000 Subject: [PATCH] pcl711: In pcl711_ai_cmd(), fix uninitialized variables timer1 and timer2. Values are passed by reference to i8253_cascade_ns_to_timer(). --- comedi/drivers/pcl711.c | 1 + 1 file changed, 1 insertion(+) diff --git a/comedi/drivers/pcl711.c b/comedi/drivers/pcl711.c index 625c2d40..8e57e3af 100644 --- a/comedi/drivers/pcl711.c +++ b/comedi/drivers/pcl711.c @@ -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); -- 2.26.2