[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161024103614.GW4469@mwanda>
Date: Mon, 24 Oct 2016 13:36:14 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: ssantosh@...nel.org, mturquette@...libre.com, sboyd@...eaurora.org,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] clk: keystone: Fix an error checking
On Sun, Oct 23, 2016 at 10:12:49AM +0200, Christophe JAILLET wrote:
> clk_register_pll() can return ERR_PTR(-ENOMEM) so here the check against
> NULL only is not correct.
>
Change the ERR_PTR(-ENOMEM) to a NULL instead. When we mix error
pointers and NULL, what it means is that NULL should be treated as a
success case. That's not the case here, so we should just return NULL
since we don't actually care about the error codes.
regards,
dan carpenter
Powered by blists - more mailing lists