summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/c-qcam.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-23 10:02:07 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-08-23 10:02:07 +0200
commitb5f5df65c8c54f89b3064a41b369a44f1883af0e (patch)
tree90c75bb8e9a769a92a38fe3b801e79b0990161d4 /linux/drivers/media/video/c-qcam.c
parent32b53bf4322c4a02362675bcf0047be4f5ac7f6f (diff)
downloadmediapointer-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.c3
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);