V4L/DVB: cpia_usb: remove unneeded variable
authorDan Carpenter <error27@gmail.com>
Tue, 1 Jun 2010 08:17:27 +0000 (05:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:28:06 +0000 (15:28 -0300)
This is just a cleanup patch.  We never use the "udev" variable so I
have removed it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cpia_usb.c

index ef1f89399983549adc9192a9f9fd79259abcdc97..58d193ff591c9b205382f7863e537c2dded81562 100644 (file)
@@ -584,7 +584,6 @@ static void cpia_disconnect(struct usb_interface *intf)
 {
        struct cam_data *cam = usb_get_intfdata(intf);
        struct usb_cpia *ucpia;
-       struct usb_device *udev;
 
        usb_set_intfdata(intf, NULL);
        if (!cam)
@@ -606,8 +605,6 @@ static void cpia_disconnect(struct usb_interface *intf)
        if (waitqueue_active(&ucpia->wq_stream))
                wake_up_interruptible(&ucpia->wq_stream);
 
-       udev = interface_to_usbdev(intf);
-
        ucpia->curbuff = ucpia->workbuff = NULL;
 
        vfree(ucpia->buffers[2]);