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

Commit 6569f098 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_labpc: use braces on all arms of `if` statement



Fix checkpatch issues "CHECK: braces {} should be used on all arms of
this statement".

Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13fec56c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -397,9 +397,10 @@ static void labpc_set_ai_convert_period(struct comedi_cmd *cmd,
		cmd->scan_begin_arg = ns;
		if (cmd->convert_arg > cmd->scan_begin_arg)
			cmd->convert_arg = cmd->scan_begin_arg;
	} else
	} else {
		cmd->convert_arg = ns;
	}
}

static unsigned int labpc_ai_scan_period(const struct comedi_cmd *cmd,
					enum scan_mode mode)
@@ -1409,8 +1410,9 @@ int labpc_common_attach(struct comedi_device *dev,

		for (i = 0; i < s->n_chan; i++)
			write_caldac(dev, i, s->maxdata / 2);
	} else
	} else {
		s->type		= COMEDI_SUBD_UNUSED;
	}

	/* EEPROM */
	s = &dev->subdevices[4];
@@ -1424,8 +1426,9 @@ int labpc_common_attach(struct comedi_device *dev,

		for (i = 0; i < s->n_chan; i++)
			devpriv->eeprom_data[i] = labpc_eeprom_read(dev, i);
	} else
	} else {
		s->type		= COMEDI_SUBD_UNUSED;
	}

	return 0;
}