mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
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;
|
||||
}
|
||||
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",
|
||||
DRV_NAME, fifo_size);
|
||||
|
Loading…
Reference in New Issue
Block a user