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

Commit 639b9f1e authored by Stewart Robertson's avatar Stewart Robertson Committed by Greg Kroah-Hartman
Browse files

Staging: comedi: fix suspect code indent in ni_labpc.c



This is a patch to the ni_labpc.c file that fixes suspect code indent for
conditional statements found by the checkpatch.pl tool

Signed-off-by: default avatarStewart Robertson <stewart_r@aliencamel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 65d6d26c
Loading
Loading
Loading
Loading
+9 −3
Original line number Original line Diff line number Diff line
@@ -583,8 +583,11 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
	/* analog output */
	/* analog output */
	s = dev->subdevices + 1;
	s = dev->subdevices + 1;
	if (thisboard->has_ao) {
	if (thisboard->has_ao) {
/* Could provide command support, except it only has a one sample
		/*
 * hardware buffer for analog output and no underrun flag. */
		 * Could provide command support, except it only has a
		 * one sample hardware buffer for analog output and no
		 * underrun flag.
		 */
		s->type = COMEDI_SUBD_AO;
		s->type = COMEDI_SUBD_AO;
		s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
		s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
		s->n_chan = NUM_AO_CHAN;
		s->n_chan = NUM_AO_CHAN;
@@ -1356,7 +1359,10 @@ static irqreturn_t labpc_interrupt(int irq, void *d)
	}
	}


	if (devpriv->current_transfer == isa_dma_transfer) {
	if (devpriv->current_transfer == isa_dma_transfer) {
		/*  if a dma terminal count of external stop trigger has occurred */
		/*
		 * if a dma terminal count of external stop trigger
		 * has occurred
		 */
		if (devpriv->status1_bits & DMATC_BIT ||
		if (devpriv->status1_bits & DMATC_BIT ||
		    (thisboard->register_layout == labpc_1200_layout
		    (thisboard->register_layout == labpc_1200_layout
		     && devpriv->status2_bits & A1_TC_BIT)) {
		     && devpriv->status2_bits & A1_TC_BIT)) {