mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 21:15:04 +07:00
staging: comedi: mpc624: remove unnecessary test
It's not necessaary to vaidate insn->n passed to the (*insn_read) function. The for() loop following it will just be a NOP. Remove the test as well as the printk noise. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b1ca6b1d47
commit
c1ce7f1054
@ -159,10 +159,6 @@ static int mpc624_ai_rinsn(struct comedi_device *dev,
|
||||
* We always write 0 to GNSWA bit, so the channel range is +-/10.1Vdc
|
||||
*/
|
||||
outb(insn->chanspec, dev->iobase + MPC624_GNMUXCH);
|
||||
if (!insn->n) {
|
||||
printk(KERN_INFO "MPC624: Warning, no data to acquire\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (n = 0; n < insn->n; n++) {
|
||||
/* Trigger the conversion */
|
||||
|
Loading…
Reference in New Issue
Block a user