staging: comedi: usbduxfast: remove unused variable in usbduxfastsub_ai_Irq()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 8 Nov 2012 09:11:09 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 19:53:01 +0000 (11:53 -0800)
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>
drivers/staging/comedi/drivers/usbduxfast.c

index 845f240304e7a24425abd10b3afe7ee8ae25496f..5adc3b31a27cd4823dd2f340874b63dce3aa4630 100644 (file)
@@ -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) {
@@ -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 */