Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b15f0277 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Greg Kroah-Hartman
Browse files

comedi: rtd520: if condition with no effect - if identical to else



The if and the else branch code are identical - so the condition has no
effect on the effective code - this patch removes the condition and the
duplicated code.

Signed-off-by: default avatarNicholas Mc Guire <der.herr@hofr.at>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 053e514f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1012,9 +1012,7 @@ static int rtd_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
	readw(dev->mmio + LAS0_CLEAR);

	/* TODO: allow multiple interrupt sources */
	if (devpriv->xfer_count > 0)	/* transfer every N samples */
		writew(IRQM_ADC_ABOUT_CNT, dev->mmio + LAS0_IT);
	else				/* 1/2 FIFO transfers */
	/* transfer every N samples */
	writew(IRQM_ADC_ABOUT_CNT, dev->mmio + LAS0_IT);

	/* BUG: start_src is ASSUMED to be TRIG_NOW */