lkml.org 
[lkml]   [2015]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net/macb: Factor out one-time assignment from loop
From
From: Ben Shelton <ben.shelton@ni.com>
Date: Wed, 22 Apr 2015 17:28:54 -0500

> In 02c958dd3 (net/macb: add TX multiqueue support for gem), the
> initialization of tx_head and tx_tail in macb_init_rings() was moved
> inside the loop that iterates over each element in the ring. Since
> tx_head and tx_tail only need to be assigned once, move them back out of
> the loop.
>
> Signed-off-by: Ben Shelton <ben.shelton@ni.com>

Yeah that makes sense, applied, thanks Ben.


\
 
 \ /
  Last update: 2015-04-23 00:41    [W:0.031 / U:1.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site