V4L/DVB (8778): radio: fix incorrect video_register_device result check
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

zatwierdzone przez
Mauro Carvalho Chehab

rodzic
6c9de52884
commit
cba99ae819
@@ -394,8 +394,7 @@ static int __init aztech_init(void)
|
||||
mutex_init(&lock);
|
||||
aztech_radio.priv=&aztech_unit;
|
||||
|
||||
if(video_register_device(&aztech_radio, VFL_TYPE_RADIO, radio_nr)==-1)
|
||||
{
|
||||
if (video_register_device(&aztech_radio, VFL_TYPE_RADIO, radio_nr) < 0) {
|
||||
release_region(io,2);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user