staging: comedi: amplc_pci224: multiple assignments should be avoided
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>
This commit is contained in:
parent
d0f2c953b6
commit
ab2064a5cb
@ -1192,11 +1192,12 @@ static int pci224_attach_common(struct comedi_device *dev,
|
||||
/* 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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user