From: Wei Liu Subject: Re: [PATCH RFC 4/4] xen-netfront: Add support for multiple queues Date: Thu, 16 Jan 2014 11:44:50 +0000 Message-ID: <20140116114450.GT5698@zion.uk.xensource.com> References: <1389803004-31812-1-git-send-email-andrew.bennieston@citrix.com> <1389803004-31812-5-git-send-email-andrew.bennieston@citrix.com> <20140116002706.GJ5331@zion.uk.xensource.com> <52D7B379.201@citrix.com> <52D7B6F1.1040604@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W3lNW-0008PP-Jm for xen-devel@lists.xenproject.org; Thu, 16 Jan 2014 11:44:54 +0000 Content-Disposition: inline In-Reply-To: <52D7B6F1.1040604@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: Wei Liu , paul.durrant@citrix.com, Andrew Bennieston , ian.campbell@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, Jan 16, 2014 at 10:39:45AM +0000, David Vrabel wrote: > On 16/01/14 10:24, Andrew Bennieston wrote: > > On 16/01/14 00:27, Wei Liu wrote: > >> On Wed, Jan 15, 2014 at 04:23:24PM +0000, Andrew J. Bennieston wrote: > >> > >>> + goto error; > >>> + } > >>> + snprintf(path, pathsize, "%s/queue-%u", > >>> + dev->nodename, queue->number); > >>> + } > >>> + else > >>> + path = (char *)dev->nodename; > >> > >> Coding style. Should be surounded by {}; > > > > OK. > > Linux style is single line blocks are not surrounded by braces. You Not if the other branch contains multiple statements and is surounded by braces. See Documentation/CodingStyle line 169. ;-) Wei. > should have the else on the same line as the preceeding } though. > > i.e., > > if (...) { > one_line() > two_line() > red_line() > blue_line() > } else > a_line() > > David