]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: sunxi: pll2: Fix return value check in sun4i_pll2_setup()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 6 Jul 2016 12:18:34 +0000 (12:18 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 8 Aug 2016 17:27:33 +0000 (19:27 +0200)
commit7e196aa1a011da35a04cb1f161e186563aa8d8db
tree548a8c751f01574a023a5aa9e960b31b96a97b9c
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
clk: sunxi: pll2: Fix return value check in sun4i_pll2_setup()

In case of error, the functions clk_register_composite() and
clk_register_divider() returns ERR_PTR() and never returns NULL.
The NULL test in the return value check should be replaced with
IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-a10-pll2.c