projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ecf7e
)
[PATCH] radio-cadet: check request_region() return value correctly
author
Alexey Dobriyan
<adobriyan@gmail.com>
Fri, 14 Oct 2005 22:59:04 +0000
(15:59 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 15 Oct 2005 00:10:12 +0000
(17:10 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/radio/radio-cadet.c
patch
|
blob
|
history
diff --git
a/drivers/media/radio/radio-cadet.c
b/drivers/media/radio/radio-cadet.c
index
022913d
..
9b04063
100644
(file)
--- 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);