Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773Ab0K0CYJ (ORCPT ); Fri, 26 Nov 2010 21:24:09 -0500 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:51373 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753407Ab0K0CYI (ORCPT ); Fri, 26 Nov 2010 21:24:08 -0500 Date: Sat, 27 Nov 2010 11:23:15 +0900 From: Paul Mundt To: Vasiliy Kulikov Cc: Guennadi Liakhovetski , kernel-janitors@vger.kernel.org, Kuninori Morimoto , Magnus Damm , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sh: boards: mach-se: use IS_ERR() instead of NULL check Message-ID: <20101127022315.GF7893@linux-sh.org> References: <1290791190-21358-1-git-send-email-segoon@openwall.com> <20101126174533.GA29507@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101126174533.GA29507@albatros> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 23 On Fri, Nov 26, 2010 at 08:45:33PM +0300, Vasiliy Kulikov wrote: > Hi Guennadi, > > On Fri, Nov 26, 2010 at 18:38 +0100, Guennadi Liakhovetski wrote: > > On Fri, 26 Nov 2010, Vasiliy Kulikov wrote: > > > clk_get() returns ERR_PTR() on error, not NULL. > > > > > > Signed-off-by: Vasiliy Kulikov > > > > Yep, there are, probably, a couple more of these, similar to > > I found a bit more, but I'd like to get feedback on these or just see it > applied first ;) > It's a reasonable change, yes. The old clk_get() scanned multiple lists, and could return NULL or -ENOENT depending on which path failed. Now that everything is consolidated through the clk_get_sys() lookup, the NULL checks should probably all be replaced. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/