Thread (72 messages) 72 messages, 7 authors, 2011-03-03

Re: [PATCH v2] net: add Faraday FTMAC100 10/100 Ethernet driver

flat view

From: Ben Hutchings <hidden>
Date: 2011-01-19 12:46:49
Also in: lkml

On Wed, 2011-01-19 at 17:40 +0800, Po-Yu Chuang wrote:
[...]
Well, TBH, I don't like this style because if I changed the
function name, the indentation might need to be adjusted.

Even worse, I got an infeasible case :-(

static struct ftmac100_rxdes *ftmac100_rx_locate_first_segment(
							       struct ftmac100 *priv)

I know my function names are quite long, but I like them to be descriptive.
Do you really insist on it?
You can break after the return type:

static struct ftmac100_rxdes *
ftmac100_rx_locate_first_segment(struct ftmac100 *priv)

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help