[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100817.172930.226785324.davem@davemloft.net>
Date: Tue, 17 Aug 2010 17:29:30 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: paul.gortmaker@...driver.com
Cc: netdev@...r.kernel.org, allan.stephens@...driver.com
Subject: Re: [PATCH net-next 11/14] tipc: Eliminate useless linked list
initialization
From: Paul Gortmaker <paul.gortmaker@...driver.com>
Date: Tue, 17 Aug 2010 17:00:13 -0400
> From: Allan Stephens <allan.stephens@...driver.com>
>
> Eliminate the initialization of the port_list field of a newly created
> TIPC port, since the port is immediately added to TIPC's global list
> of ports (which alters the port_list field).
>
> Signed-off-by: Allan Stephens <allan.stephens@...driver.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@...driver.com>
This is not correct.
INIT_LIST_HEAD() is mandatory for all new objects, since it may
initialize debugging knobs and whatnot inside of the list_head object
when certain debugging options are enabled.
Therefore it may never be elided.
--
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