From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw02.freescale.net (de01egw02.freescale.net [192.88.165.103]) by ozlabs.org (Postfix) with ESMTP id 9A61FDDF8F for ; Thu, 25 Jan 2007 10:41:49 +1100 (EST) Message-ID: <45B7EEB6.8060607@freescale.com> Date: Wed, 24 Jan 2007 17:41:42 -0600 From: Scott Wood MIME-Version: 1.0 To: Segher Boessenkool Subject: Re: [PATCH 06/18] Make ft_node_add() accept and return NULL. References: <20070124210709.GF10527@ld0162-tx32.am.freescale.net> <4EF444AA-B7C0-460D-BA0A-EEDC9E2E4812@kernel.crashing.org> <45B7D78E.5020704@freescale.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Segher Boessenkool wrote: > But doesn't ft_add_node() add a node to the tree? If so, > a NULL is most likely a program error. If not, some name > change is in order /me thinks ;-) No, it adds the node to the phandle->internal pointer lookup table (or returns the existing phandle if it's already there). And yes, it could use a better name -- how about ft_node_to_phandle()? -Scott