On Fri, 14 Apr 2006, Andrew Morton wrote:
> Vadim Lobanov <[email protected]> wrote:
> >
> > I can put in a comment to explain what the code is doing, or if you
> > think that the bitmasking itself is "yuk", then I can easily transform
> > the code into an explicit "if () {}" block. :)
>
> yes please.
>
> > > Yuk. Sorry, no.
> >
> > Thank you for the review. The comments above are easy to address. Do you
> > like the main concept behind the patch? Should I correct and resubmit?
>
> I don't really understand it yet.
It's really a bit of (subjective) cleanup, that just incidentally
happens to save us a few extra clock cycles here and there. In the
current code, the "count" and "pt" variables are modified both in the
function where they're declared (do_poll()), AND also indirectly in a
different function (do_pollfd()). The patch moves all handling of these
variables to the function that declares and "owns" them (do_poll()).
> Yes, please resend and feel free to a) add comments in places where we can
> help people to understand the code and b) convert any code which gets
> touched to be coding-style-friendly. (I usually recommend that we do that
> even if the surrounding code uses different conventions - eventually
> everything will be fixed ;))
I couldn't agree more on this particular point. The only thing that
stops me is that noone can ever agree on the coding style, even if it is
spelled out in the Documentation/ directory (witness the periodic flame
wars on this list). Helps to have a thick skin, and I'm slowly getting
to that point. ;)
I'll correct, comment, and resend the patch when I get a chance.
- Vadim Lobanov
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]