From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 12 Sep 2006 16:44:43 -0500 From: Olof Johansson To: Arnd Bergmann Subject: Re: [Cbe-oss-dev] [PATCH] powerpc: allow PHBs anywhere in the device tree Message-ID: <20060912164443.231bc01e@localhost.localdomain> In-Reply-To: <200609122316.21820.arnd@arndb.de> References: <200609121952.04779.arnd.bergmann@de.ibm.com> <20060912145438.30b6bf80@localhost.localdomain> <200609122316.21820.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 12 Sep 2006 23:16:21 +0200 Arnd Bergmann wrote: > On Tuesday 12 September 2006 21:54, Olof Johansson wrote: > > !strcasecmp(...) instead? > > I do that normally for functions that return either a truth value > or a pointer to an object that may be NULL, whereas strcasecmp > returns a numerical value that I'm checking for a specific result. > This is also consistant with how it is used elsewhere in the file. Ok. > > Do they ever exist in non-lowercase versions? Old code just did > > strcmp(). > > I took that from device_is_compatible(), which also does > strncasecmp, so I assumed that was done for a reason. I think it might be because compatible is by tradition less specific. I was also mostly looking at the patch, not the rest of the file. Either is fine with me though, I just wanted to bring it up. -Olof