Commit 2e9157f8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

V4L/DVB: cpia_usb: remove unneeded variable

This is just a cleanup patch.  We never use the "udev" variable so I
have removed it.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8b0d7048
...@@ -584,7 +584,6 @@ static void cpia_disconnect(struct usb_interface *intf) ...@@ -584,7 +584,6 @@ static void cpia_disconnect(struct usb_interface *intf)
{ {
struct cam_data *cam = usb_get_intfdata(intf); struct cam_data *cam = usb_get_intfdata(intf);
struct usb_cpia *ucpia; struct usb_cpia *ucpia;
struct usb_device *udev;
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (!cam) if (!cam)
...@@ -606,8 +605,6 @@ static void cpia_disconnect(struct usb_interface *intf) ...@@ -606,8 +605,6 @@ static void cpia_disconnect(struct usb_interface *intf)
if (waitqueue_active(&ucpia->wq_stream)) if (waitqueue_active(&ucpia->wq_stream))
wake_up_interruptible(&ucpia->wq_stream); wake_up_interruptible(&ucpia->wq_stream);
udev = interface_to_usbdev(intf);
ucpia->curbuff = ucpia->workbuff = NULL; ucpia->curbuff = ucpia->workbuff = NULL;
vfree(ucpia->buffers[2]); vfree(ucpia->buffers[2]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment