Re: [PATCH]: complete cleanup of check_region

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Surya <surya.prabhakar@...>
Cc: <emoenke@...>, Linux Kernel <linux-kernel@...>, <kernel-janitors@...>
Date: Monday, June 11, 2007 - 7:18 am

On 08/06/07, Surya <surya.prabhakar@wipro.com> wrote:
<snip>

Probably.

That makes sense to me.


Why two blank comment lines?  Isn't one enough?


Blank line between variable declarations and code please.


Keep the variables together and seperate from the code. Like this :

{
       int i=0, j=0;
       int port_index;

       addr[2]={1, CDROM_PORT};
...



Just in case you are bored, at some point those cli()/sti() need to go
away as well and be replaced with proper locking. But that's a
different patch :-)


If we get here after actually having obtained a region an ndrives is
then 0, then we should ofcourse release the region before we bail out.
makes sense.


This makes sense. If we bail out due to not being able to obtain the
CDo_command region, then we should release the other region.


This looks a lot better to me. I have only given it a quick look, but
I don't see any major problems.

Please tell your mail client not to include crap like that when
sending to public mailing lists.

-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH]: complete cleanup of check_region, Surya, (Thu Jun 7, 10:46 pm)
Re: [PATCH]: complete cleanup of check_region, Jesper Juhl, (Mon Jun 11, 7:18 am)
[PATCH]: check_region cleanup in sbpcd.c, Surya, (Tue Jun 12, 12:15 am)
Re: [PATCH]: check_region cleanup in sbpcd.c, Jesper Juhl, (Mon Jun 25, 7:07 pm)