Thread (8 messages) 8 messages, 5 authors, 2013-06-09

Re: [PATCH] virtio-net: put virtio net header inline with data

From: Jesse Larrew <hidden>
Date: 2013-06-06 20:18:27
Also in: lkml, qemu-devel

On 06/06/2013 03:09 PM, Dave Jones wrote:
On Thu, Jun 06, 2013 at 02:59:44PM -0500, Jesse Larrew wrote:

 > >  	pr_debug("%s: xmit %p %pM\n", vi->dev->name, skb, dest);
 > > +	if (vi->mergeable_rx_bufs)
 > > +		hdr_len = sizeof hdr->mhdr;
 > > +	else
 > > +		hdr_len = sizeof hdr->hdr;
 > 
 > All conditionals need braces.

Documentation/CodingStyle disagrees:

 "Do not unnecessarily use braces where a single statement will do."

	Dave 
Ah, yes. This is kernel code. My mistake. :)

Jesse Larrew
Software Engineer, KVM Team
IBM Linux Technology Center
Phone: (512) 973-2052 (T/L: 363-2052)
jlarrew@linux.vnet.ibm.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help