Fix checkpatch issue: "CHECK: multiple assignments should be avoided".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/* PCI234 range options. */
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,
GFP_KERNEL);
- if (!s->range_table_list)
+ if (!range_table_list)
return -ENOMEM;
+ s->range_table_list = range_table_list;
if (options) {
for (n = 2; n < 3 + s->n_chan; n++) {