From: H Hartley Sweeten Date: Wed, 28 May 2014 23:34:52 +0000 (-0700) Subject: staging: comedi: adq12b: remove 's->len_chanlist' init for analog inputs X-Git-Tag: v3.17-rc1~123^2~1985 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=11c4e2db8ef149e36471f4bbb3c296b48533f28f;p=karo-tx-linux.git staging: comedi: adq12b: remove 's->len_chanlist' init for analog inputs This driver does not support async commands so the len_chanlist init is unnecessary. Remove it and allow the core to default the value to '1'. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adq12b.c b/drivers/staging/comedi/drivers/adq12b.c index c5d752dd3ec5..10f34867d07e 100644 --- a/drivers/staging/comedi/drivers/adq12b.c +++ b/drivers/staging/comedi/drivers/adq12b.c @@ -235,9 +235,6 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it) : &range_adq12b_ai_bipolar; s->maxdata = 0xfff; - - s->len_chanlist = 4; /* This is the maximum chanlist length that - the board can handle */ s->insn_read = adq12b_ai_insn_read; s = &dev->subdevices[1];