Re: [PATCH] net: fec: drop check for clk==NULL before calling clk_*

2016-10-20 Thread David Miller
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

RE: [PATCH] net: fec: drop check for clk==NULL before calling clk_*

2016-10-20 Thread Andy Duan
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

[PATCH] net: fec: drop check for clk==NULL before calling clk_*

2016-10-20 Thread Uwe Kleine-König
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