linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] radio-cadet: check request_region() return value correctly
@ 2005-10-06 21:43 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-10-06 21:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/media/radio/radio-cadet.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- ./drivers/media/radio/radio-cadet.c
+++ ./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);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-06 21:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 21:43 [PATCH] radio-cadet: check request_region() return value correctly Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).