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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2038,7 +2038,6 @@ static int axienet_remove(struct platform_device *pdev)

	axienet_mdio_teardown(lp);

	if (lp->clk)
	clk_disable_unprepare(lp->clk);

	of_node_put(lp->phy_node);