staging: comedi: usbduxfast: rename 'insnBuffer' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:36:02 +0000 (13:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:25 +0000 (16:24 -0700)
This buffer space is kmalloc'ed and free'ed but never used. Just
remove it.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c

index 2a75f88d65ffdaa332f2c1a22d697f30ba4571c3..f129588409093b75df4bd76dca100e3b65e990c0 100644 (file)
@@ -150,7 +150,6 @@ static const struct comedi_lrange range_usbduxfast_ai_range = {
 struct usbduxfast_private {
        struct urb *urb;        /* BULK-transfer handling: urb */
        int8_t *transfer_buffer;
-       int16_t *insnBuffer;    /* input buffer for single insn */
        short int ai_cmd_running;       /* asynchronous command is running */
        short int ai_continous; /* continous acquisition */
        long int ai_sample_count;       /* number of samples to acquire */
@@ -1285,10 +1284,6 @@ static int usbduxfast_auto_attach(struct comedi_device *dev,
        if (!devpriv->dux_commands)
                return -ENOMEM;
 
-       devpriv->insnBuffer = kmalloc(SIZEINSNBUF, GFP_KERNEL);
-       if (!devpriv->insnBuffer)
-               return -ENOMEM;
-
        ret = usb_set_interface(usb,
                                intf->altsetting->desc.bInterfaceNumber, 1);
        if (ret < 0) {
@@ -1344,9 +1339,6 @@ static void usbduxfast_detach(struct comedi_device *dev)
                devpriv->urb = NULL;
        }
 
-       kfree(devpriv->insnBuffer);
-       devpriv->insnBuffer = NULL;
-
        kfree(devpriv->dux_commands);
        devpriv->dux_commands = NULL;