Commit a0d48518 authored by Zhang Changzhong's avatar Zhang Changzhong Committed by David S. Miller
Browse files

net: pxa168_eth: 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>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 34e43543
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1541,10 +1541,8 @@ static int pxa168_eth_remove(struct platform_device *pdev)
	}
	if (dev->phydev)
		phy_disconnect(dev->phydev);
	if (pep->clk) {
		clk_disable_unprepare(pep->clk);
	}

	clk_disable_unprepare(pep->clk);
	mdiobus_unregister(pep->smi_bus);
	mdiobus_free(pep->smi_bus);
	unregister_netdev(dev);