projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdaae1f
)
cb_das16_cs: In das16cs_ai_cmdtest(), initialize div1 and div2 values
author
Ian Abbott
<abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:35:13 +0000
(11:35 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:35:13 +0000
(11:35 +0000)
passed by reference to i8253_cascade_ns_to_timer() (two instances).
comedi/drivers/cb_das16_cs.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_das16_cs.c
b/comedi/drivers/cb_das16_cs.c
index 0ef8e1d9a259c36b62afc82544fb25c6980c7034..d1f312e346129ecd76bdab62bbe64f337fde7d52 100644
(file)
--- a/
comedi/drivers/cb_das16_cs.c
+++ b/
comedi/drivers/cb_das16_cs.c
@@
-458,7
+458,7
@@
static int das16cs_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
/* step 4: fix up any arguments */
if (cmd->scan_begin_src == TRIG_TIMER) {
- unsigned int div1
, div2
;
+ unsigned int div1
= 0, div2 = 0
;
tmp = cmd->scan_begin_arg;
i8253_cascade_ns_to_timer(100, &div1, &div2,
@@
-467,7
+467,7
@@
static int das16cs_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
err++;
}
if (cmd->convert_src == TRIG_TIMER) {
- unsigned int div1
, div2
;
+ unsigned int div1
= 0, div2 = 0
;
tmp = cmd->convert_arg;
i8253_cascade_ns_to_timer(100, &div1, &div2,