staging: &&/|| typo
PATCH 1/1 staging: &&/|| typo
Only error out on unexpected fifo size.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/staging/comedi/drivers/rtd520.c +1 -1
@@ -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);
drivers/staging/comedi/drivers/rtd520.c static int rtd520_probe_fifo_depth(comedi_device *dev) · line 1237
Quoted 2 lines
drivers/staging/comedi/drivers/rtd520.c +1
-1-if (fifo_size !=0x400 || fifo_size !=0x2000 ) +if (fifo_size !=0x400 && fifo_size !=0x2000 )
What does the presence of this bug say about the probability that this code has ever been used for anything real?
- R.
Quoted 5 lines · Roland Dreier
drivers/staging/comedi/drivers/rtd520.c static int rtd520_probe_fifo_depth(comedi_device *dev) · line 1237
Quoted 2 lines
drivers/staging/comedi/drivers/rtd520.c +1
-1-if (fifo_size !=0x400 || fifo_size !=0x2000 ) +if (fifo_size !=0x400 && fifo_size !=0x2000 )What does the presence of this bug say about the probability that this code has ever been used for anything real?
With the comedi drivers, I really don't know, they have not had that much wide exposure before, despite being around for a very long time.
thanks,
greg k-h