Commit e50fd9b5 authored by Zhang Changzhong's avatar Zhang Changzhong Committed by Jakub Kicinski

net: xilinx: remove redundant null check before clk_disable_unprepare()

Because clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter, so the additional checks are unnecessary, just
remove them.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Reviewed-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6af52ae2
...@@ -2038,7 +2038,6 @@ static int axienet_remove(struct platform_device *pdev) ...@@ -2038,7 +2038,6 @@ static int axienet_remove(struct platform_device *pdev)
axienet_mdio_teardown(lp); axienet_mdio_teardown(lp);
if (lp->clk)
clk_disable_unprepare(lp->clk); clk_disable_unprepare(lp->clk);
of_node_put(lp->phy_node); of_node_put(lp->phy_node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment