From: H Hartley Sweeten Date: Fri, 21 Nov 2014 21:22:34 +0000 (-0700) Subject: staging: comedi: adv_pci1723: remove subdevice 'len_chanlist' initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=817c5ac2dc41f6371bbc343bdf236c8993d53c28;p=linux-beck.git staging: comedi: adv_pci1723: remove subdevice 'len_chanlist' initialization The subdevice 'len_chanlist' is only used by subdevices that support async commands. Remove the unnecessary initializations in this driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adv_pci1723.c b/drivers/staging/comedi/drivers/adv_pci1723.c index 01e90d946860..9c9a0d332e5f 100644 --- a/drivers/staging/comedi/drivers/adv_pci1723.c +++ b/drivers/staging/comedi/drivers/adv_pci1723.c @@ -140,7 +140,7 @@ static int pci1723_dio_insn_bits(struct comedi_device *dev, } static int pci1723_auto_attach(struct comedi_device *dev, - unsigned long context_unused) + unsigned long context_unused) { struct pci_dev *pcidev = comedi_to_pci_dev(dev); struct comedi_subdevice *s; @@ -163,7 +163,6 @@ static int pci1723_auto_attach(struct comedi_device *dev, s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON; s->n_chan = 8; s->maxdata = 0xffff; - s->len_chanlist = 8; s->range_table = &range_bipolar10; s->insn_write = pci1723_ao_insn_write; @@ -191,7 +190,6 @@ static int pci1723_auto_attach(struct comedi_device *dev, s->subdev_flags = SDF_READABLE | SDF_WRITABLE; s->n_chan = 16; s->maxdata = 1; - s->len_chanlist = 16; s->range_table = &range_digital; s->insn_config = pci1723_dio_insn_config; s->insn_bits = pci1723_dio_insn_bits;