diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-06 14:18:34 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-08-08 19:27:33 +0200 |
commit | 7e196aa1a011da35a04cb1f161e186563aa8d8db (patch) | |
tree | 548a8c751f01574a023a5aa9e960b31b96a97b9c /drivers/clk/sunxi/clk-sun8i-mbus.c | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-7e196aa1a011da35a04cb1f161e186563aa8d8db.tar.xz linux-7e196aa1a011da35a04cb1f161e186563aa8d8db.zip |
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>
Diffstat (limited to 'drivers/clk/sunxi/clk-sun8i-mbus.c')
0 files changed, 0 insertions, 0 deletions