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/cpia.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/cpia.c')
-rw-r--r-- | linux/drivers/media/video/cpia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cpia.c b/linux/drivers/media/video/cpia.c index 21c1f4dbb..43048eeb1 100644 --- a/linux/drivers/media/video/cpia.c +++ b/linux/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; |