]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mvebu: armada-37xx-periph: Use PTR_ERR_OR_ZERO()
authorGomonovych, Vasyl <gomonovych@gmail.com>
Tue, 28 Nov 2017 23:04:06 +0000 (00:04 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 28 Dec 2017 22:55:59 +0000 (14:55 -0800)
commit38744cf21c95a11e90994ef654b97a3bc03a2f78
treee8d038c59f35cd416919f00e534c3fb9da428298
parentf9e9d4ede33f20ad238fc11db0232eaede684940
clk: mvebu: armada-37xx-periph: Use PTR_ERR_OR_ZERO()

Fix ptr_ret.cocci warnings:
drivers/clk/mvebu/armada-37xx-periph.c:362:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/armada-37xx-periph.c