[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160913.120636.145288761809547250.davem@davemloft.net>
Date: Tue, 13 Sep 2016 12:06:36 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: christophe.jaillet@...adoo.fr
Cc: isubramanian@....com, kchudgar@....com, f.fainelli@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] drivers: net: phy: xgene: Fix 'remove' function
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Date: Sun, 11 Sep 2016 21:43:34 +0200
> If 'IS_ERR(pdata->clk)' is true, then 'clk_disable_unprepare(pdata->clk)'
> will do nothing.
>
> It is likely that 'if (!IS_ERR(pdata->clk))' was expected here.
> In fact, the test can even be removed because 'clk_disable_unprepare'
> already handles such cases.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Applied.
Powered by blists - more mailing lists