summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-01-07 06:24:51 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-07 06:24:51 -0200
commitdf0b4ca7281eb52502a930f064748b7668875d64 (patch)
treea1527325e33b342167504ea1d4a79dd7c8aeb269 /linux/drivers/media/radio
parent2229972ebc4fb838f243a7609f9841377224810e (diff)
downloadmediapointer-dvb-s2-df0b4ca7281eb52502a930f064748b7668875d64.tar.gz
mediapointer-dvb-s2-df0b4ca7281eb52502a930f064748b7668875d64.tar.bz2
drivers/media/radio/radio-sf16fmr2.c: fix error handling
From: Andrew Morton <akpm@linux-foundation.org> video_register_device() returns -EFOO on errr, not -1. Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9699 Reported-By: <devzero@web.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/radio')
-rw-r--r--linux/drivers/media/radio/radio-sf16fmr2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/radio/radio-sf16fmr2.c b/linux/drivers/media/radio/radio-sf16fmr2.c
index 06e61146a..a61076fb2 100644
--- a/linux/drivers/media/radio/radio-sf16fmr2.c
+++ b/linux/drivers/media/radio/radio-sf16fmr2.c
@@ -481,8 +481,7 @@ static int __init fmr2_init(void)
return -EBUSY;
}
- if(video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr)==-1)
- {
+ if (video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr) < 0) {
release_region(io, 2);
return -EINVAL;
}