diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-03 17:11:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 18:37:17 -0300 |
commit | dc60de338f4b2d445a24d4e36bbc994f3badb406 (patch) | |
tree | e5e75af437a653d01f1b8786127b02844f8adaab /drivers/media/video/cpia.c | |
parent | cba99ae81901fe61ac4b0d65c697474af29dc4ea (diff) | |
download | talos-op-linux-dc60de338f4b2d445a24d4e36bbc994f3badb406.tar.gz talos-op-linux-dc60de338f4b2d445a24d4e36bbc994f3badb406.zip |
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/cpia.c')
-rw-r--r-- | drivers/media/video/cpia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c index dc8cc6115e2f..a661800b0e69 100644 --- a/drivers/media/video/cpia.c +++ b/drivers/media/video/cpia.c @@ -3955,7 +3955,7 @@ struct cam_data *cpia_register_camera(struct cpia_camera_ops *ops, void *lowleve camera->lowlevel_data = lowlevel; /* register v4l device */ - if (video_register_device(&camera->vdev, VFL_TYPE_GRABBER, video_nr) == -1) { + if (video_register_device(&camera->vdev, VFL_TYPE_GRABBER, video_nr) < 0) { kfree(camera); printk(KERN_DEBUG "video_register_device failed\n"); return NULL; |