All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: request_region() on sound/oss/wavfront.c.
@ 2004-05-22 22:43 Domen Puncer
  2004-05-22 23:11 ` Domen Puncer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Domen Puncer @ 2004-05-22 22:43 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

On 22/05/04 18:54 -0300, Gustavo Franco wrote:
> Hi list,
> 
> [Patch aplied against 2.6.6-bk9 - compiles cleanly. ]
> 
> I've added two error checks for request_region() calls on the source
> and replaced a check_region() with request_region().The release_region()
> calls seems to be ok, but let me known if i'm missing something.
> 
> Comments?
>

You request same region twice...

> +++ sound/oss/wavfront.c  2004-05-22 18:28:38.000000000 -0300
> +       if (!request_region (io_base, 16, "wavefront")) {
Few lines later there is a:
	dev.base = io_base;
So this will print ugly error messages.

> +       if(!request_region (dev.base+2, 6, "wavefront synth")) {
> +               if(!request_region (dev.base+8, 8, "wavefront fx")) {

IMHO, you can just get rid of latter 2 request_region's.
And don't forget about release_region.

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-23  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-22 22:43 [Kernel-janitors] Re: request_region() on sound/oss/wavfront.c Domen Puncer
2004-05-22 23:11 ` Domen Puncer
2004-05-23  1:12 ` Gustavo Franco
2004-05-23  7:09 ` Domen Puncer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.