]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: drop check for clk==NULL before calling clk_*
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 20 Oct 2016 08:28:27 +0000 (10:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 18:20:08 +0000 (14:20 -0400)
commit4757017817db482e145bc3ae2f93c44e008e9ca3
treed7372b759c02b3b1c9a724f5e78bc16164d94c99
parent4fb79115de1fb8fc28b4a42a3830a9ef1df3aa2f
net: fec: drop check for clk==NULL before calling clk_*

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 <u.kleine-koenig@pengutronix.de>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c