Commit ab2064a5 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: amplc_pci224: multiple assignments should be avoided

Fix checkpatch issue: "CHECK: multiple assignments should be avoided".
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0f2c953
...@@ -1192,11 +1192,12 @@ static int pci224_attach_common(struct comedi_device *dev, ...@@ -1192,11 +1192,12 @@ static int pci224_attach_common(struct comedi_device *dev,
/* PCI234 range options. */ /* PCI234 range options. */
const struct comedi_lrange **range_table_list; const struct comedi_lrange **range_table_list;
s->range_table_list = range_table_list = range_table_list =
kmalloc(sizeof(struct comedi_lrange *) * s->n_chan, kmalloc(sizeof(struct comedi_lrange *) * s->n_chan,
GFP_KERNEL); GFP_KERNEL);
if (!s->range_table_list) if (!range_table_list)
return -ENOMEM; return -ENOMEM;
s->range_table_list = range_table_list;
if (options) { if (options) {
for (n = 2; n < 3 + s->n_chan; n++) { for (n = 2; n < 3 + s->n_chan; n++) {
......
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