summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cpia2
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/cpia2
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/cpia2')
-rw-r--r--linux/drivers/media/video/cpia2/cpia2_v4l.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cpia2/cpia2_v4l.c b/linux/drivers/media/video/cpia2/cpia2_v4l.c
index 515c8b57a..7f00a853d 100644
--- a/linux/drivers/media/video/cpia2/cpia2_v4l.c
+++ b/linux/drivers/media/video/cpia2/cpia2_v4l.c
@@ -1959,8 +1959,7 @@ int cpia2_register_camera(struct camera_data *cam)
reset_camera_struct_v4l(cam);
/* register v4l device */
- if (video_register_device
- (cam->vdev, VFL_TYPE_GRABBER, video_nr) == -1) {
+ if (video_register_device(cam->vdev, VFL_TYPE_GRABBER, video_nr) < 0) {
ERR("video_register_device failed\n");
video_device_release(cam->vdev);
return -ENODEV;