diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-10-14 15:59:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-14 17:10:12 -0700 |
commit | f1ac046d7b297186f755fb213589b539426e1406 (patch) | |
tree | 0a13e989a9d30832f4cdae02435d06f1da4acce9 /drivers/media/radio/radio-cadet.c | |
parent | c6ecf7ed3131961e5aeedb0efd217afa0808798f (diff) | |
download | linux-stable-f1ac046d7b297186f755fb213589b539426e1406.tar.gz linux-stable-f1ac046d7b297186f755fb213589b539426e1406.tar.bz2 linux-stable-f1ac046d7b297186f755fb213589b539426e1406.zip |
[PATCH] radio-cadet: check request_region() return value correctly
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/radio/radio-cadet.c')
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 022913da8c59..9b0406318f2d 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c @@ -543,7 +543,7 @@ static int cadet_probe(void) for(i=0;i<8;i++) { io=iovals[i]; - if(request_region(io,2, "cadet-probe")>=0) { + if (request_region(io, 2, "cadet-probe")) { cadet_setfreq(1410); if(cadet_getfreq()==1410) { release_region(io, 2); |