diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 09:56:25 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 09:56:25 +0200 |
commit | 32b53bf4322c4a02362675bcf0047be4f5ac7f6f (patch) | |
tree | 4310220e5c495af3dd96532fcdc96edbfebc1921 /linux/drivers/media/radio/radio-zoltrix.c | |
parent | 33532a9370a8af24bb2332219dedf45570e50531 (diff) | |
download | mediapointer-dvb-s2-32b53bf4322c4a02362675bcf0047be4f5ac7f6f.tar.gz mediapointer-dvb-s2-32b53bf4322c4a02362675bcf0047be4f5ac7f6f.tar.bz2 |
radio: fix incorrect video_register_device result check
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/radio/radio-zoltrix.c')
-rw-r--r-- | linux/drivers/media/radio/radio-zoltrix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/radio/radio-zoltrix.c b/linux/drivers/media/radio/radio-zoltrix.c index b4acd3810..da7281d41 100644 --- a/linux/drivers/media/radio/radio-zoltrix.c +++ b/linux/drivers/media/radio/radio-zoltrix.c @@ -459,8 +459,7 @@ static int __init zoltrix_init(void) return -EBUSY; } - if (video_register_device(&zoltrix_radio, VFL_TYPE_RADIO, radio_nr) == -1) - { + if (video_register_device(&zoltrix_radio, VFL_TYPE_RADIO, radio_nr) < 0) { release_region(io, 2); return -EINVAL; } |