aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-07-19 08:05:49 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 07:42:03 -0500
commit32c67ecc4a690220cbd9fda442c70bc4ba9b2dac (patch)
tree97e1c4d00922fe6aebca015cf4a9a7a1b2ac9e5d /drivers/media/video/pwc
parent76ae853844dff124559e1b609b0c71c792a98221 (diff)
[media] pwc: Properly mark device_hint as unused in all probe error 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')
-rw-r--r--drivers/media/video/pwc/pwc-if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index df639268566f..c1806e3a2ca0 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -1266,14 +1266,14 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
1266 return 0; 1266 return 0;
1267 1267
1268err_video_unreg: 1268err_video_unreg:
1269 if (hint < MAX_DEV_HINTS)
1270 device_hint[hint].pdev = NULL;
1271 video_unregister_device(&pdev->vdev); 1269 video_unregister_device(&pdev->vdev);
1272err_unregister_v4l2_dev: 1270err_unregister_v4l2_dev:
1273 v4l2_device_unregister(&pdev->v4l2_dev); 1271 v4l2_device_unregister(&pdev->v4l2_dev);
1274err_free_controls: 1272err_free_controls:
1275 v4l2_ctrl_handler_free(&pdev->ctrl_handler); 1273 v4l2_ctrl_handler_free(&pdev->ctrl_handler);
1276err_free_mem: 1274err_free_mem:
1275 if (hint < MAX_DEV_HINTS)
1276 device_hint[hint].pdev = NULL;
1277 kfree(pdev); 1277 kfree(pdev);
1278 return rc; 1278 return rc;
1279} 1279}