From: Uwe Kleine-König
Date: Thu, 20 Oct 2016 10:28:27 +0200
> clk_prepare, clk_enable and their counterparts (at least the common clk
> ones, but also most others) do check for the clk being NULL anyhow (and
> return 0 then), so there is no gain when the caller checks, too.
>
> Signed-off-by: U
From: Uwe Kleine-König Sent: Thursday, October
20, 2016 4:28 PM
> To: Andy Duan
> Cc: ker...@pengutronix.de; netdev@vger.kernel.org
> Subject: [PATCH] net: fec: drop check for clk==NULL before calling clk_*
>
> clk_prepare, clk_enable and their counterparts (at least the common
clk_prepare, clk_enable and their counterparts (at least the common clk
ones, but also most others) do check for the clk being NULL anyhow (and
return 0 then), so there is no gain when the caller checks, too.
Signed-off-by: Uwe Kleine-König
---
drivers/net/ethernet/freescale/fec_main.c | 25