Staging: comedi: initialize divisor variables
authorIan Abbott <abbotti@mev.co.uk>
Fri, 20 Nov 2009 11:32:37 +0000 (11:32 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:04 +0000 (12:23 -0800)
commit48b1aff5b93521c5ad90842bef52b218ac50a4ab
tree2adf30084e79501f038cde06a6a3b6d04119432e
parent67a6efb1f86eb51e4b702c4e8e735ca24e3427d8
Staging: comedi: initialize divisor variables

The i8253_cascade_ns_to_timer_2div() function (and
i8253_cascade_ns_to_timer macro) checks the old values *d1 and *d2
for correctness as a heuristic before calculating new values.  Don't
call the function with uninitialized values in *d1 and *d2.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/adl_pci9118.c
drivers/staging/comedi/drivers/adv_pci1710.c
drivers/staging/comedi/drivers/cb_das16_cs.c
drivers/staging/comedi/drivers/pcl711.c
drivers/staging/comedi/drivers/pcl816.c
drivers/staging/comedi/drivers/pcl818.c