Unverified Commit 37f67d39 authored by Dan Carpenter's avatar Dan Carpenter Committed by Maxime Ripard
Browse files

drm/sun4i: dsi: delete unnecessary IS_ERR() checks



The "dsi->bus_clk" pointer cannot be an error pointer at this point.
The check is confusing and unnecessary.  Delete it.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YmqH71MtoGn2AXUg@kili
parent 9030a9e5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1193,8 +1193,8 @@ static int sun6i_dsi_probe(struct platform_device *pdev)
err_unprotect_clk:
	clk_rate_exclusive_put(dsi->mod_clk);
err_attach_clk:
	if (!IS_ERR(dsi->bus_clk))
	regmap_mmio_detach_clk(dsi->regs);

	return ret;
}

@@ -1207,7 +1207,6 @@ static int sun6i_dsi_remove(struct platform_device *pdev)
	mipi_dsi_host_unregister(&dsi->host);
	clk_rate_exclusive_put(dsi->mod_clk);

	if (!IS_ERR(dsi->bus_clk))
	regmap_mmio_detach_clk(dsi->regs);

	return 0;