mirror of https://gitee.com/openkylin/linux.git
Staging: comedi: rtd520: &&/|| typo
Only error out on unexpected fifo size. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Dan Christian <dac@ptolemy.arc.nasa.gov> Cc: David Schleef <ds@schleef.org> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7dcb582cd4
commit
9a47b74a6f
|
@ -1234,7 +1234,7 @@ static int rtd520_probe_fifo_depth(comedi_device *dev)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
RtdAdcClearFifo(dev);
|
RtdAdcClearFifo(dev);
|
||||||
if(fifo_size != 0x400 || fifo_size != 0x2000)
|
if(fifo_size != 0x400 && fifo_size != 0x2000)
|
||||||
{
|
{
|
||||||
rt_printk("\ncomedi: %s: unexpected fifo size of %i, expected 1024 or 8192.\n",
|
rt_printk("\ncomedi: %s: unexpected fifo size of %i, expected 1024 or 8192.\n",
|
||||||
DRV_NAME, fifo_size);
|
DRV_NAME, fifo_size);
|
||||||
|
|
Loading…
Reference in New Issue