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: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
34e435438c
Коммит
a0d48518cd
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче