diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-03 16:11:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:37:17 -0400 |
commit | dc60de338f4b2d445a24d4e36bbc994f3badb406 (patch) | |
tree | e5e75af437a653d01f1b8786127b02844f8adaab /drivers/media/video/bw-qcam.c | |
parent | cba99ae81901fe61ac4b0d65c697474af29dc4ea (diff) |
V4L/DVB (8779): v4l: fix more incorrect video_register_device result checks
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bw-qcam.c')
-rw-r--r-- | drivers/media/video/bw-qcam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c index d3b3268bace8..6e39e253ce53 100644 --- a/drivers/media/video/bw-qcam.c +++ b/drivers/media/video/bw-qcam.c | |||
@@ -946,8 +946,7 @@ static int init_bwqcam(struct parport *port) | |||
946 | 946 | ||
947 | printk(KERN_INFO "Connectix Quickcam on %s\n", qcam->pport->name); | 947 | printk(KERN_INFO "Connectix Quickcam on %s\n", qcam->pport->name); |
948 | 948 | ||
949 | if(video_register_device(&qcam->vdev, VFL_TYPE_GRABBER, video_nr)==-1) | 949 | if (video_register_device(&qcam->vdev, VFL_TYPE_GRABBER, video_nr) < 0) { |
950 | { | ||
951 | parport_unregister_device(qcam->pdev); | 950 | parport_unregister_device(qcam->pdev); |
952 | kfree(qcam); | 951 | kfree(qcam); |
953 | return -ENODEV; | 952 | return -ENODEV; |