Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438Ab3FXBok (ORCPT ); Sun, 23 Jun 2013 21:44:40 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:35058 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221Ab3FXBoj (ORCPT ); Sun, 23 Jun 2013 21:44:39 -0400 Date: Sun, 23 Jun 2013 18:44:37 -0700 (PDT) Message-Id: <20130623.184437.1772856342146874217.davem@davemloft.net> To: eliezer.tamir@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jesse.brandeburg@intel.com, donald.c.skidmore@intel.com, e1000-devel@lists.sourceforge.net, willemb@google.com, erdnetdev@gmail.com, bhutchings@solarflare.com, andi@firstfloor.org, hpa@zytor.com, eilong@broadcom.com, or.gerlitz@gmail.com, amirv@mellanox.com, alexr@mellanox.com, eliezer@tamir.org.il Subject: Re: [PATCH v3 net-next 0/1] net: lls select poll support From: David Miller In-Reply-To: <20130619100421.22132.99447.stgit@ladj378.jer.intel.com> References: <20130619100421.22132.99447.stgit@ladj378.jer.intel.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1306 Lines: 45 From: Eliezer Tamir 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/