[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1416762320.17888.21.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Sun, 23 Nov 2014 09:05:20 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Amir Vadai <amirv@...lanox.com>
Cc: Ben Hutchings <ben@...adent.org.uk>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] mlx4: fix mlx4_en_set_rxfh()
On Sun, 2014-11-23 at 18:53 +0200, Amir Vadai wrote:
> > */
> > for (i = 0; i < priv->rx_ring_num; i++) {
> > + if (!ring_index)
> > + continue;
>
> Why didn't you put the whole loop under the 'if'?
To avoid adding one indentation on the block, and ease this code review.
This is hardly fast path, and compiler does the optim for us anyway.
--
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