From: Alexey Dobriyan Date: Fri, 14 Oct 2005 22:59:04 +0000 (-0700) Subject: [PATCH] radio-cadet: check request_region() return value correctly X-Git-Tag: v2.6.14-rc5~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f1ac046d7b297186f755fb213589b539426e1406;p=linux-2.6-omap-h63xx.git [PATCH] radio-cadet: check request_region() return value correctly Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 022913da8c5..9b0406318f2 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);