mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
Staging: comedi: apci3200: fix test of ui_DelayTime range in i_APCI3200_CommandTestAnalogInput()
For ui_DelayTime to be less than 1 and greater than 1023 is logically impossible. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
48c8276d7a
commit
7ff177a887
1 changed files with 1 additions and 1 deletions
|
@ -2669,7 +2669,7 @@ int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, struct comedi_s
|
||||||
err++;
|
err++;
|
||||||
printk("\nThe Delay time base selection is in error\n");
|
printk("\nThe Delay time base selection is in error\n");
|
||||||
}
|
}
|
||||||
if (ui_DelayTime < 1 && ui_DelayTime > 1023) {
|
if (ui_DelayTime < 1 || ui_DelayTime > 1023) {
|
||||||
err++;
|
err++;
|
||||||
printk("\nThe Delay time value is in error\n");
|
printk("\nThe Delay time value is in error\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue