diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-06-25 17:39:19 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:53:43 -0300 |
commit | b824bb4b12548fedd622686d443310d574eb084e (patch) | |
tree | 09b71717e080d9809a73e4a198d15a7a892f0fb6 /drivers/media/video/pwc/pwc.h | |
parent | 1a4ede65f30315a31cb9b239bec0d4bb32834691 (diff) | |
download | linux-stable-b824bb4b12548fedd622686d443310d574eb084e.tar.gz linux-stable-b824bb4b12548fedd622686d443310d574eb084e.tar.bz2 linux-stable-b824bb4b12548fedd622686d443310d574eb084e.zip |
[media] pwc: Get rid of error_status and unplugged variables
Having 2 ways of tracking disconnection is too much, remove both and
instead simply set pdev->udev to NULL on disconnect. Also check for
pdev->udev being NULL in all possible entry paths.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc.h')
-rw-r--r-- | drivers/media/video/pwc/pwc.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h index cfe82319f343..13b85246a261 100644 --- a/drivers/media/video/pwc/pwc.h +++ b/drivers/media/video/pwc/pwc.h @@ -161,7 +161,6 @@ struct pwc_device int release; /* release number */ int features; /* feature bits */ char serial[30]; /* serial number (string) */ - int error_status; /* set when something goes wrong */ int usb_init; /* set when the cam has been initialized */ /*** Video data ***/ @@ -180,7 +179,6 @@ struct pwc_device char vsnapshot; /* snapshot mode */ char vsync; /* used by isoc handler */ char vmirror; /* for ToUCaM series */ - char unplugged; int cmd_len; unsigned char cmd_buf[13]; |