Skip to content

Commit

Permalink
staging: comedi: usbduxfast: remove unused variable in usbduxfastsub_…
Browse files Browse the repository at this point in the history
…ai_Irq()

The variable 'p' is initialized but never used otherwise, so
remove the unused variable.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 7803d8e commit 54327dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/usbduxfast.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ static void usbduxfastsub_ai_Irq(struct urb *urb)
struct usbduxfastsub_s *udfs;
struct comedi_device *this_comedidev;
struct comedi_subdevice *s;
uint16_t *p;

/* sanity checks - is the urb there? */
if (!urb) {
Expand Down Expand Up @@ -379,7 +378,6 @@ static void usbduxfastsub_ai_Irq(struct urb *urb)
return;
}

p = urb->transfer_buffer;
if (!udfs->ignore) {
if (!udfs->ai_continous) {
/* not continuous, fixed number of samples */
Expand Down

0 comments on commit 54327dd

Please sign in to comment.