From 5ee182a3c3ed76a2aa44cc088988db184c36c869 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Tue, 14 May 2013 13:36:02 -0700 Subject: [PATCH] staging: comedi: usbduxfast: rename 'insnBuffer' from private data This buffer space is kmalloc'ed and free'ed but never used. Just remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxfast.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 2a75f88d65ff..f12958840909 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -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; -- 2.30.2