Commit 9a47b74a authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

Staging: comedi: rtd520: &&/|| typo

Only error out on unexpected fifo size.
Signed-off-by: default avatarRoel 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7dcb582c
...@@ -1234,7 +1234,7 @@ static int rtd520_probe_fifo_depth(comedi_device *dev) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment