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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/YmqH71MtoGn2AXUg@kili
This commit is contained in:
parent
9030a9e571
commit
37f67d390d
1 changed files with 3 additions and 4 deletions
|
@ -1193,8 +1193,8 @@ err_remove_dsi_host:
|
|||
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);
|
||||
regmap_mmio_detach_clk(dsi->regs);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1207,8 +1207,7 @@ 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);
|
||||
regmap_mmio_detach_clk(dsi->regs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue