From: H Hartley Sweeten Date: Wed, 30 Jan 2013 23:45:55 +0000 (-0700) Subject: staging: comedi: ni_daq_dio24: remove comedi private data X-Git-Tag: firefly_0821_release~3680^2~1080^2~177 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=61f828ec59e949379ce9e00a99785c1d395bc9e0;p=firefly-linux-kernel-4.4.55.git staging: comedi: ni_daq_dio24: remove comedi private data The comedi private data, struct dio24_private, is not used in the driver. Remove it and the kzalloc. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_daq_dio24.c b/drivers/staging/comedi/drivers/ni_daq_dio24.c index 9aca9dd57a2d..e0bdb70c9233 100644 --- a/drivers/staging/comedi/drivers/ni_daq_dio24.c +++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c @@ -83,25 +83,14 @@ static const struct dio24_board_struct dio24_boards[] = { }, }; -struct dio24_private { - - int data; /* number of data points left to be taken */ -}; - static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it) { const struct dio24_board_struct *thisboard = comedi_board(dev); - struct dio24_private *devpriv; struct comedi_subdevice *s; unsigned long iobase = 0; struct pcmcia_device *link; int ret; - devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL); - if (!devpriv) - return -ENOMEM; - dev->private = devpriv; - /* get base address, irq etc. based on bustype */ switch (thisboard->bustype) { case pcmcia_bustype: