diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-03 20:11:58 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 21:37:16 (GMT) |
commit | cba99ae81901fe61ac4b0d65c697474af29dc4ea (patch) | |
tree | 5dd22d5a4d02d92fe92bacd95e7e40b7149dfa8d /drivers/media/radio/dsbr100.c | |
parent | 6c9de52884aeafb05a935467c3a2c05a2d445ab7 (diff) | |
download | linux-cba99ae81901fe61ac4b0d65c697474af29dc4ea.tar.xz |
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>
Diffstat (limited to 'drivers/media/radio/dsbr100.c')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 1ed88f3..70c65a7 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c @@ -493,7 +493,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, radio->usbdev = interface_to_usbdev(intf); radio->curfreq = FREQ_MIN*FREQ_MUL; video_set_drvdata(radio->videodev, radio); - if (video_register_device(radio->videodev, VFL_TYPE_RADIO,radio_nr)) { + if (video_register_device(radio->videodev, VFL_TYPE_RADIO, radio_nr) < 0) { warn("Could not register video device"); video_device_release(radio->videodev); kfree(radio->transfer_buffer); |