diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 10:02:07 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 10:02:07 +0200 |
commit | b5f5df65c8c54f89b3064a41b369a44f1883af0e (patch) | |
tree | 90c75bb8e9a769a92a38fe3b801e79b0990161d4 /linux/drivers/media/video/c-qcam.c | |
parent | 32b53bf4322c4a02362675bcf0047be4f5ac7f6f (diff) | |
download | mediapointer-dvb-s2-b5f5df65c8c54f89b3064a41b369a44f1883af0e.tar.gz mediapointer-dvb-s2-b5f5df65c8c54f89b3064a41b369a44f1883af0e.tar.bz2 |
v4l: fix more incorrect video_register_device result checks
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/c-qcam.c')
-rw-r--r-- | linux/drivers/media/video/c-qcam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/c-qcam.c b/linux/drivers/media/video/c-qcam.c index fe8937ed1..cfb269a0c 100644 --- a/linux/drivers/media/video/c-qcam.c +++ b/linux/drivers/media/video/c-qcam.c @@ -788,8 +788,7 @@ static int init_cqcam(struct parport *port) parport_release(qcam->pdev); - if (video_register_device(&qcam->vdev, VFL_TYPE_GRABBER, video_nr)==-1) - { + if (video_register_device(&qcam->vdev, VFL_TYPE_GRABBER, video_nr) < 0) { printk(KERN_ERR "Unable to register Colour QuickCam on %s\n", qcam->pport->name); parport_unregister_device(qcam->pdev); |