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

In case of error, the function of_io_request_and_map() 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-sun8i-mbus.c