Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a4a34a4 authored by Kevin Hao's avatar Kevin Hao Committed by Ulf Hansson
Browse files

mmc: sdhci-dove: remove the unneeded error check



The function clk_disable_unprepare() already take care of either error
or null cases.

Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b36ac1b4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -117,7 +117,6 @@ static int sdhci_dove_probe(struct platform_device *pdev)
	return 0;

err_sdhci_add:
	if (!IS_ERR(priv->clk))
	clk_disable_unprepare(priv->clk);
	sdhci_pltfm_free(pdev);
	return ret;
@@ -131,7 +130,6 @@ static int sdhci_dove_remove(struct platform_device *pdev)

	sdhci_pltfm_unregister(pdev);

	if (!IS_ERR(priv->clk))
	clk_disable_unprepare(priv->clk);

	return 0;