[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130623.184437.1772856342146874217.davem@davemloft.net>
Date: Sun, 23 Jun 2013 18:44:37 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eliezer.tamir@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
jesse.brandeburg@...el.com, donald.c.skidmore@...el.com,
e1000-devel@...ts.sourceforge.net, willemb@...gle.com,
erdnetdev@...il.com, bhutchings@...arflare.com,
andi@...stfloor.org, hpa@...or.com, eilong@...adcom.com,
or.gerlitz@...il.com, amirv@...lanox.com, alexr@...lanox.com,
eliezer@...ir.org.il
Subject: Re: [PATCH v3 net-next 0/1] net: lls select poll support
From: Eliezer Tamir <eliezer.tamir@...ux.intel.com>
Date: Wed, 19 Jun 2013 13:04:21 +0300
> One question: do we need in sock_poll() to test that sock->sk is not null?
> (Thanks to Willem de Bruijn for pointing this out.)
We should not have to.
Please clean up various things in this patch:
1) You have cases where you add tons of unnecessary empty lines, of the
form:
if (foo) {
/* EMPTY LINE */
code...
please get rid of them.
2) Some of the LL loops have conditions that are not properly formatted,
I see things like:
do {
...
} while (x && y && z
&& whatever)
That "&& whatever" is not properly indented. You must always indent
multi-line conditions like this:
xxx (x && y &&
z && ...)
That is, operators always end the line, the never begin the line.
And one the second and subsequent lines you must line up the first
character with the first column after the openning parenthesis of
the first line. You should not just use a series of only TAB
characters to indent these expressions.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists