Commit beb1cc1b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_mio_common: multiple assignments should be avoided

Fix the checkpatch.pl issues.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b6a0e5b3
...@@ -4478,12 +4478,12 @@ static void caldac_setup(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -4478,12 +4478,12 @@ static void caldac_setup(struct comedi_device *dev, struct comedi_subdevice *s)
s->n_chan = n_chans; s->n_chan = n_chans;
if (diffbits) { if (diffbits) {
unsigned int *maxdata_list; unsigned int *maxdata_list = devpriv->caldac_maxdata_list;
if (n_chans > MAX_N_CALDACS) if (n_chans > MAX_N_CALDACS)
dev_err(dev->class_dev, dev_err(dev->class_dev,
"BUG! MAX_N_CALDACS too small\n"); "BUG! MAX_N_CALDACS too small\n");
s->maxdata_list = maxdata_list = devpriv->caldac_maxdata_list; s->maxdata_list = maxdata_list;
chan = 0; chan = 0;
for (i = 0; i < n_dacs; i++) { for (i = 0; i < n_dacs; i++) {
type = board->caldac[i]; type = board->caldac[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment